Jelajahi Sumber

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 tahun lalu
induk
melakukan
481adf12a2
1 mengubah file dengan 8 tambahan dan 1 penghapusan
  1. 8 1
      src/signout.php

+ 8 - 1
src/signout.php

@@ -7,7 +7,14 @@
 	 **  Clears the cookie, and logs them out.
 	 **  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
    // $squirrelmail_language is set by a cookie when the user
    // selects language
    // selects language
    if (isset($squirrelmail_language)) {
    if (isset($squirrelmail_language)) {