浏览代码

Added a quick fix for th gettext _ function as page_header.php3 is not needed in signout so the function _ doesn't exist if they don't have get text

oricn 25 年之前
父节点
当前提交
481adf12a2
共有 1 个文件被更改,包括 8 次插入1 次删除
  1. 8 1
      src/signout.php

+ 8 - 1
src/signout.php

@@ -7,7 +7,14 @@
 	 **  Clears the cookie, and logs them out.
 	 **
 	 **/
-	
+
+	// Quick Fix for Gettext in LogOut Screen
+if (!function_exists("_")) {
+      function _($string) {
+         return $string;
+      }
+   }
+
    // $squirrelmail_language is set by a cookie when the user
    // selects language
    if (isset($squirrelmail_language)) {