diff options
author | vdigital <vdigital@piwigo.org> | 2010-03-10 22:07:14 +0000 |
---|---|---|
committer | vdigital <vdigital@piwigo.org> | 2010-03-10 22:07:14 +0000 |
commit | dfe94b111d61f5ff282ce3fb5446ce7b10148892 (patch) | |
tree | 2109a588826fcd50567503433c59c3b616c13a4a /include | |
parent | cbfc601ad8579ae8516464b324d52a4136bc4fe7 (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 'include')
-rw-r--r-- | include/functions.inc.php | 12 |
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; |