mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user