Fixed GET continuation after timeot and logout page access without authorization.
[fa-stable.git] / admin / display_prefs.php
index 1d77d28614b157fd4105cb62f8c4ce6bcaef53d0..2581b2590e3ebf38c2d26d11482e09e18433532a 100644 (file)
@@ -9,7 +9,7 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 1;
+$page_security = 'SA_SETUPDISPLAY';
 $path_to_root="..";
 include($path_to_root . "/includes/session.inc");
 
@@ -45,7 +45,7 @@ if (isset($_POST['setprefs']))
                        $_POST['language'], check_value('sticky_doc_date'), $_POST['startup_tab']);
 
                if ($chg_lang)
-                       language::set_language($_POST['language']);
+                       $_SESSION['language']->set_language($_POST['language']);
                        // refresh main menu
 
                flush_dir($comp_path.'/'.user_company().'/js_cache');