From 6b7535498cc9dd7645db5e781c7d32a6b4750cb1 Mon Sep 17 00:00:00 2001 From: mistic100 Date: Mon, 9 Jun 2014 17:20:43 +0000 Subject: feature 3076: Enhance plugin update system git-svn-id: http://piwigo.org/svn/trunk@28651 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/include/themes.class.php | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) (limited to 'admin/include/themes.class.php') diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 824ccf4b9..5389eef58 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -86,19 +86,11 @@ class themes if (class_exists($classname)) { - $theme_maintain = new $classname($theme_id); - } - else - { - $theme_maintain = new DummyTheme_maintain($theme_id); + return new $classname($theme_id); } } - else - { - $theme_maintain = new DummyTheme_maintain($theme_id); - } - - return $theme_maintain; + + return new DummyTheme_maintain($theme_id); } /** -- cgit v1.2.3