Skip to content

Commit

Permalink
Feature 1502: Avoid 500 error if parent theme is the theme itself.
Browse files Browse the repository at this point in the history
git-svn-id: http://piwigo.org/svn/trunk@5154 68402e56-0260-453c-a942-63ccdbb3a9ee
  • Loading branch information
patdenice committed Mar 17, 2010
1 parent f82430d commit 54b9eea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/template.class.php
Expand Up @@ -98,7 +98,7 @@ function set_theme($root, $theme, $path)

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);
}
Expand Down

0 comments on commit 54b9eea

Please sign in to comment.