diff options
author | Michal Čihař <michal@cihar.com> | 2004-09-23 18:36:54 +0400 |
---|---|---|
committer | Michal Čihař <michal@cihar.com> | 2004-09-23 18:36:54 +0400 |
commit | b425d0ebabbc33cab0a904361c2181b046de8e74 (patch) | |
tree | 696a7572d9271b8ee9ea39d8a2d74c5e490c859a | |
parent | c427b7233136776ba7ed8237c15787ece54b0caf (diff) |
Do not prepend $cfg['ThemePath'] with another './'.
-rwxr-xr-x | ChangeLog | 4 | ||||
-rw-r--r-- | css/phpmyadmin.css.php | 6 | ||||
-rw-r--r-- | libraries/common.lib.php | 10 | ||||
-rw-r--r-- | themes.php | 2 |
4 files changed, 13 insertions, 9 deletions
@@ -5,6 +5,10 @@ phpMyAdmin - Changelog $Id$ $Source$ +2004-09-23 Michal Čihař <michal@cihar.com> + * themes.php, css/phpmyadmin.css.php, libraries/common.lib.php: Do not + prepend $cfg['ThemePath'] with another './'. + 2004-09-22 Alexander M. Turek <me@derrabus.de> * config.inc.php, libraries/config_import.lib.php: Added "./" to the default value of $cfg['ThemePath']. Thanks to Donny Simonton for diff --git a/css/phpmyadmin.css.php b/css/phpmyadmin.css.php index 27b901a20a..4428520642 100644 --- a/css/phpmyadmin.css.php +++ b/css/phpmyadmin.css.php @@ -36,7 +36,7 @@ if ($js_frame == 'left') { ************************************************************************************/ // 2004-05-30: Michael Keck (mail@michaelkeck.de) // Check, if theme_left.css.php exists and include - $tmp_file = './' . $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_left.css.php'; + $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_left.css.php'; if (@file_exists($tmp_file)) { include($tmp_file); } // end of include theme_left.css.php @@ -46,7 +46,7 @@ if ($js_frame == 'left') { ************************************************************************************/ // 2004-05-30: Michael Keck (mail@michaelkeck.de) // Check, if theme_print.css.php exists and include - $tmp_file = './' . $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_print.css.php'; + $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_print.css.php'; if (@file_exists($tmp_file)) { include($tmp_file); } // end of include theme_print.css.php @@ -56,7 +56,7 @@ if ($js_frame == 'left') { ************************************************************************************/ // 2004-05-30: Michael Keck (mail@michaelkeck.de) // Check, if theme_right.css.php exists and include - $tmp_file = './' . $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_right.css.php'; + $tmp_file = $GLOBALS['cfg']['ThemePath'] . '/' . $pmaTheme . '/css/theme_right.css.php'; if (@file_exists($tmp_file)) { include($tmp_file); } // end of include theme_right.css.php diff --git a/libraries/common.lib.php b/libraries/common.lib.php index 5a4adaab85..26522b18b1 100644 --- a/libraries/common.lib.php +++ b/libraries/common.lib.php @@ -303,8 +303,8 @@ if (!isset($_COOKIE['pma_theme']) || empty($_COOKIE['pma_theme'])){ $GLOBALS['theme'] = $cfg['ThemeDefault']; $ThemeDefaultOk = FALSE; if ($cfg['ThemePath']!='' && $cfg['ThemePath'] != FALSE) { - $tmp_theme_mainpath = './' . $cfg['ThemePath']; - $tmp_theme_fullpath = './' . $cfg['ThemePath'] . '/' .$cfg['ThemeDefault']; + $tmp_theme_mainpath = $cfg['ThemePath']; + $tmp_theme_fullpath = $cfg['ThemePath'] . '/' .$cfg['ThemeDefault']; if (@is_dir($tmp_theme_mainpath)) { if (isset($cfg['ThemeDefault']) && @is_dir($tmp_theme_fullpath)) { $ThemeDefaultOk = TRUE; @@ -340,13 +340,13 @@ if ($theme_generation != PMA_THEME_GENERATION) if ($theme_version < PMA_THEME_VERSION) $GLOBALS['theme'] = 'original'; // too old version -$pmaThemeImage = './' . $cfg['ThemePath'] . '/' . $GLOBALS['theme'] . '/img/'; -$tmp_layout_file = './' . $cfg['ThemePath'] . '/' . $GLOBALS['theme'] . '/layout.inc.php'; +$pmaThemeImage = $cfg['ThemePath'] . '/' . $GLOBALS['theme'] . '/img/'; +$tmp_layout_file = $cfg['ThemePath'] . '/' . $GLOBALS['theme'] . '/layout.inc.php'; if (@file_exists($tmp_layout_file)) { include($tmp_layout_file); } if (!is_dir($pmaThemeImage)) { - $pmaThemeImage = './' . $cfg['ThemePath'] . '/original/img/'; + $pmaThemeImage = $cfg['ThemePath'] . '/original/img/'; } // end theme manager diff --git a/themes.php b/themes.php index 937708dbf8..c7ef143ea5 100644 --- a/themes.php +++ b/themes.php @@ -4,7 +4,7 @@ require_once('./libraries/grab_globals.lib.php'); require_once('./libraries/common.lib.php'); /* Theme Select */ -$path_to_themes = './' . $cfg['ThemePath'] . '/'; +$path_to_themes = $cfg['ThemePath'] . '/'; require_once('./libraries/select_theme.lib.php'); /* set language and charset */ |