mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-05-02 03:22:50 +02:00
Feature 1502: Avoid 500 error if parent theme is the theme itself.
git-svn-id: http://piwigo.org/svn/trunk@5154 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -98,7 +98,7 @@ class Template {
|
||||
|
||||
include($root.'/'.$theme.'/themeconf.inc.php');
|
||||
|
||||
if (isset($themeconf['parent']))
|
||||
if (isset($themeconf['parent']) and $themeconf['parent'] != $theme)
|
||||
{
|
||||
$this->set_theme($root, $themeconf['parent'], $path);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user