fix original theme colors
This commit is contained in:
@@ -316,15 +316,11 @@ if (!isset($_COOKIE['pma_theme']) || empty($_COOKIE['pma_theme'])){
|
||||
}
|
||||
} else {
|
||||
$GLOBALS['theme'] = $_COOKIE['pma_theme'];
|
||||
if ($_COOKIE['pma_theme'] != 'original') {
|
||||
$pmaThemeImage = './' . $cfg['ThemePath'] . '/' . $_COOKIE['pma_theme'] . '/img/';
|
||||
$tmp_color_file = './' . $cfg['ThemePath'] . '/' . PMA_securePath($_COOKIE['pma_theme']) . '/colors.inc.php';
|
||||
if (@file_exists($tmp_color_file)) {
|
||||
include($tmp_color_file);
|
||||
}
|
||||
} else {
|
||||
$pmaThemeImage = './images/';
|
||||
}
|
||||
}
|
||||
if (!is_dir($pmaThemeImage)) {
|
||||
$pmaThemeImage = './images/';
|
||||
|
Reference in New Issue
Block a user