From dfe94b111d61f5ff282ce3fb5446ce7b10148892 Mon Sep 17 00:00:00 2001 From: vdigital Date: Wed, 10 Mar 2010 22:07:14 +0000 Subject: Fix: failed to open dir on default template git-svn-id: http://piwigo.org/svn/trunk@5100 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'include') 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; -- cgit v1.2.3