diff --git a/admin_classes.php b/admin_classes.php index d5ed423..8bebf24 100644 --- a/admin_classes.php +++ b/admin_classes.php @@ -137,19 +137,19 @@ $items = $stmt->fetchAll(PDO::FETCH_ASSOC);
- LIVE + = h(t('LIVE', 'مباشر')) ?> = h(t('Upcoming', 'قادم')) ?> diff --git a/includes/app.php b/includes/app.php index 1834784..5aa34c5 100644 --- a/includes/app.php +++ b/includes/app.php @@ -66,8 +66,8 @@ function landing_setting(string $key, string $default_en, string $default_ar = " } function current_lang(): string { - $lang = $_GET['lang'] ?? $_SESSION['lang'] ?? 'en'; - $lang = in_array($lang, ['en', 'ar'], true) ? $lang : 'en'; + $lang = $_GET['lang'] ?? $_SESSION['lang'] ?? 'ar'; + $lang = in_array($lang, ['en', 'ar'], true) ? $lang : 'ar'; $_SESSION['lang'] = $lang; return $lang; } diff --git a/live_lesson.php b/live_lesson.php index 5466075..f80f723 100644 --- a/live_lesson.php +++ b/live_lesson.php @@ -92,7 +92,7 @@ render_head(
You requested a password reset. Click the link below to reset it:
Link expires in 1 hour.
"; + $htmlBody = current_lang() === 'ar' ? "لقد طلبت إعادة تعيين كلمة المرور. انقر على الرابط أدناه لإعادة تعيينها:
ينتهي الرابط خلال ساعة واحدة.
" : "You requested a password reset. Click the link below to reset it:
Link expires in 1 hour.
"; MailService::sendMail($email, "Password Reset", $htmlBody); } diff --git a/teacher.php b/teacher.php index 288a175..ead6357 100644 --- a/teacher.php +++ b/teacher.php @@ -272,19 +272,19 @@ render_nav('teacher.php');