aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorvdigital <vdigital@piwigo.org>2010-03-10 22:07:14 +0000
committervdigital <vdigital@piwigo.org>2010-03-10 22:07:14 +0000
commitdfe94b111d61f5ff282ce3fb5446ce7b10148892 (patch)
tree2109a588826fcd50567503433c59c3b616c13a4a /include/functions.inc.php
parentcbfc601ad8579ae8516464b324d52a4136bc4fe7 (diff)
Fix: failed to open dir on default template
git-svn-id: http://piwigo.org/svn/trunk@5100 68402e56-0260-453c-a942-63ccdbb3a9ee
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;