aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/themes.class.php
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2014-06-09 17:20:43 +0000
committermistic100 <mistic@piwigo.org>2014-06-09 17:20:43 +0000
commit6b7535498cc9dd7645db5e781c7d32a6b4750cb1 (patch)
tree424d650eed92c78228947c217fd2d3215a6269f0 /admin/include/themes.class.php
parent3f1cd5643be14a4ce9df3b0c5dec9c18ddccbc8b (diff)
feature 3076: Enhance plugin update system
git-svn-id: http://piwigo.org/svn/trunk@28651 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/themes.class.php')
-rw-r--r--admin/include/themes.class.php14
1 files changed, 3 insertions, 11 deletions
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);
}
/**