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