From 3c03c816a74b7811e880cd5b7d60d747a6c82a09 Mon Sep 17 00:00:00 2001 From: iggyvolz Date: Mon, 11 Nov 2013 19:49:37 -0500 Subject: [PATCH] Editing image path This page is at plugin.php?page=MantisThemeManager/config, and it is trying to go to the directory above Mantis to get the plugin images. --- pages/config.php | 348 +++++++++++++++++++++++------------------------ 1 file changed, 174 insertions(+), 174 deletions(-) diff --git a/pages/config.php b/pages/config.php index 396d0c6..e9daeb3 100644 --- a/pages/config.php +++ b/pages/config.php @@ -1,179 +1,179 @@ - - - - -
-
- - - - - - - - - - - - - - - - - - -
- - - - -
- -
-
- - - - - - - - - - - - - - > - - - - - - -
- -
" width="20%"> - - - - - - <?php echo $theme['name'];?> - -
-
- -
-
- - - - + + + +
+
+ + + + + + + + + + + + + + + + + + +
+ + + + +
+ +
+
+ + + + + + + + + + + + + + > + + + + + + +
+ +
" width="20%"> + + + + + + <?php echo $theme['name'];?> + +
+
+ +
+
+ + + + 'default', - 'img' => "plugins/MantisThemeManager/pages/default.png", - 'isActive' => $active_theme == 'default' - ); - - - // Load themes from css/themes - if (file_exists($themes_path)) { + 'img' => "plugins/MantisThemeManager/pages/default.png", + 'isActive' => $active_theme == 'default' + ); + + + // Load themes from css/themes + if (file_exists($themes_path)) { if ($handle = opendir($themes_path)) { - while (false !== ($theme_name = readdir($handle))) { - if ($theme_name !== '.' && $theme_name !== '..') { - $themes[] = array( - 'name' => $theme_name, - 'img' => "../css/themes/$theme_name/" . $theme_name . ".png", - 'isActive' => $active_theme == $theme_name - ); - } + while (false !== ($theme_name = readdir($handle))) { + if ($theme_name !== '.' && $theme_name !== '..') { + $themes[] = array( + 'name' => $theme_name, + 'img' => "./css/themes/$theme_name/" . $theme_name . ".png", + 'isActive' => $active_theme == $theme_name + ); + } } closedir($handle); - } - // Create the "themes" folder first - } else { - // Bullshit, I know - $error = true; - } - - return $themes; -} + } + // Create the "themes" folder first + } else { + // Bullshit, I know + $error = true; + } + + return $themes; +}