aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--include/functions.inc.php12
1 files changed, 7 insertions, 5 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index fed1d3f5c..e2c6510e8 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -721,11 +721,13 @@ function get_pwg_themes()
foreach (get_dirs($template_dir) as $template)
{
- foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme)
- {
- if ( ($template.'/'.$theme) != $conf['admin_layout'] )
- array_push($themes, $template.'/'.$theme);
- }
+ if ( $template != 'default' )
+ {
+ foreach (get_dirs($template_dir.'/'.$template.'/theme') as $theme)
+ {
+ array_push($themes, $template.'/'.$theme);
+ }
+ }
}
return $themes;