Small fix
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Jan 2009 10:07:06 +0000 (10:07 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 14 Jan 2009 10:07:06 +0000 (10:07 +0000)
admin/display_prefs.php
includes/lang/language.php

index 12f613699a3b743e720c8dd8e0c50240cc6a8291..f752a807ec8aa0e31af4e95c94c7b21e49ab255f 100644 (file)
@@ -46,8 +46,7 @@ if (isset($_POST['setprefs']))
                flush_dir($comp_path.'/'.user_company().'/js_cache');   
 
                if (user_theme() != $theme)
-                       //reload_page("");
-                       meta_forward($_SERVER['PHP_SELF']);
+                       reload_page("");
 
                display_notification_centered(_("Display settings have been updated."));
        }
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