search themes on every script start

This commit is contained in:
Sebastian Mendel
2006-04-26 13:29:01 +00:00
parent eb847fee11
commit 161d2eb2aa
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ $Source$
updated themes; updated themes;
fixed bug #1452131 Fonts too large; fixed bug #1452131 Fonts too large;
fixed bug #1446211 Colors hardcoded in theme css files; fixed bug #1446211 Colors hardcoded in theme css files;
* libraries/Theme_Manager.class.php: search themes on every script start
2006-04-25 Michal Čihař <michal@cihar.com> 2006-04-25 Michal Čihař <michal@cihar.com>
* libraries/common.lib.php: Make cookie login form work with token * libraries/common.lib.php: Make cookie login form work with token

View File

@@ -129,6 +129,11 @@ class PMA_Theme_Manager {
if ($this->_themes_path != trim($GLOBALS['cfg']['ThemePath']) if ($this->_themes_path != trim($GLOBALS['cfg']['ThemePath'])
|| $this->theme_default != $GLOBALS['cfg']['ThemeDefault']) { || $this->theme_default != $GLOBALS['cfg']['ThemeDefault']) {
$this->init(); $this->init();
} else {
// at least the theme path needs to be checked every time for new
// themes, as there is no other way at the moment to keep track of
// new or removed themes
$this->loadThemes();
} }
} }