X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=admin%2Fdisplay_prefs.php;h=1de931ebac1f3f0ff3d49389611b7ba045ce9be0;hb=081465f30442afc4f008a1c7038bef320466a730;hp=1d77d28614b157fd4105cb62f8c4ce6bcaef53d0;hpb=898036f37b83358167b8a391729e5a2711d467f9;p=fa-stable.git diff --git a/admin/display_prefs.php b/admin/display_prefs.php index 1d77d286..1de931eb 100644 --- a/admin/display_prefs.php +++ b/admin/display_prefs.php @@ -9,11 +9,11 @@ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the License here . ***********************************************************************/ -$page_security = 1; +$page_security = 'SA_SETUPDISPLAY'; $path_to_root=".."; include($path_to_root . "/includes/session.inc"); -page(_("Display Setup")); +page(_($help_context = "Display Setup")); include_once($path_to_root . "/includes/date_functions.inc"); include_once($path_to_root . "/includes/ui.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']);