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:
patdenice
2010-03-17 00:55:26 +00:00
parent f82430dd3b
commit 54b9eea12d

View File

@@ -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);
}