From 54b9eea12dae32137575b4e254ca054eb4a75e1a Mon Sep 17 00:00:00 2001 From: patdenice Date: Wed, 17 Mar 2010 00:55:26 +0000 Subject: 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 --- include/template.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include/template.class.php') diff --git a/include/template.class.php b/include/template.class.php index d982bbb8e..453266706 100644 --- a/include/template.class.php +++ b/include/template.class.php @@ -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); } -- cgit v1.2.3