From 03f9900a64ed2c332810900ffd589cee9c8cfefc Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 17 Jun 2004 09:47:13 +0000 Subject: [PATCH] fix original theme colors --- libraries/common.lib.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 8f393d71b..e4e61dc82 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -316,14 +316,10 @@ 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/'; + $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); } } if (!is_dir($pmaThemeImage)) {