Added discrete users online in footer (from Wish List Forum) (New rerun)
[fa-stable.git] / admin / display_prefs.php
index 1d77d28614b157fd4105cb62f8c4ce6bcaef53d0..b84c1da602b9de54b6e0f33ab5fa925ec9fbcd5e 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,11 +45,14 @@ 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');   
 
+               if ($chg_theme)
+                       $_SESSION['bordercolor'] = "#8cacbb";
+
                if ($chg_theme || $chg_lang)
                        meta_forward($_SERVER['PHP_SELF']);