Small fix
[fa-stable.git] / includes / lang / language.php
index 819e83aa3a9d7a485636d2a9b5ab37740a4396f3..aeb50e0ceffae7d60dd8daab3070402361a3b03b 100644 (file)
@@ -56,8 +56,7 @@ class language
                        $locale = $path_to_root . "/lang/" . $_SESSION['language']->code . "/locale.inc";
                        // check id file exists only once for session
                        $_SESSION['language']->is_locale_file = file_exists($locale);
-                   //reload_page("");
-                       meta_forward($_SERVER['PHP_SELF']);
+                   reload_page("");
                }
        }
 
@@ -140,9 +139,10 @@ function _set($key,$value)
 {
        get_text::set_var($key,$value);
 }
-/*
+
 function reload_page($msg) 
 {
+       global $Ajax;
 //     header("Location: $_SERVER['PHP_SELF']."");
 //     exit;
        echo "<html>";
@@ -157,8 +157,9 @@ function reload_page($msg)
        echo "</div>";  
        echo "</body>";
        echo "</html>";
+       $Ajax->redirect($_SERVER['PHP_SELF']);
 }
-*/
+
 
 
 ?>
\ No newline at end of file