[Frontaccounting-cvs_updates] /hgroot/frontaccounting/frontaccounting: 0002032: user_theme() s...
Brought to you by:
frontaccounting,
itronics
From: FrontAccounting <fro...@us...> - 2013-01-27 00:35:52
|
details: http://frontaccounting.hg.sourceforge.net:8000/hgroot/frontaccounting/frontaccounting/hgroot/frontaccounting/frontaccounting/rev/3ed3663cc3be changeset: 3164:3ed3663cc3be user: Joe Hunt <joe...@gm...> date: Sun Jan 27 01:35:23 2013 +0100 description: 0002032: user_theme() should return default if theme does not exist diffstat: includes/prefs/userprefs.inc | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diffs (20 lines): diff -r 760dfad1382a -r 3ed3663cc3be includes/prefs/userprefs.inc --- a/includes/prefs/userprefs.inc Sat Jan 26 17:57:23 2013 +0100 +++ b/includes/prefs/userprefs.inc Sun Jan 27 01:35:23 2013 +0100 @@ -51,6 +51,7 @@ $this->theme = 'default'; } else { + global $path_to_root; $this->language = $user["language"]; $_SESSION['language']->set_language($this->language); @@ -82,6 +83,8 @@ $this->sticky_date = 0; $this->startup_tab = "orders"; } + if (!file_exists("$path_to_root/themes/$this->theme")) + $this->theme = "default"; } } |