Fix: failed to open dir on default template

git-svn-id: http://piwigo.org/svn/trunk@5100 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
vdigital
2010-03-10 22:07:14 +00:00
parent cbfc601ad8
commit dfe94b111d
+7 -5
View File
@@ -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;