Browse Source

language must be set before using gettext functions

tokul 20 năm trước cách đây
mục cha
commit
16054c2be4
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      src/signout.php

+ 3 - 0
src/signout.php

@@ -76,6 +76,9 @@ if ($signout_page) {
     header("Location: $signout_page");
     header("Location: $signout_page");
     exit; /* we send no content if we're redirecting. */
     exit; /* we send no content if we're redirecting. */
 }
 }
+
+/* internal gettext functions will fail, if language is not set */
+set_up_language($squirrelmail_language, true, true);
 ?>
 ?>
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
 <html>
 <html>