diff options
author | plegall <plg@piwigo.org> | 2010-03-25 10:08:33 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2010-03-25 10:08:33 +0000 |
commit | 663be9ca638c12d889036d5143fd6553f2575373 (patch) | |
tree | 70bd6feee556b5fc4a79998972caec8b791c1518 /admin/include/themes.class.php | |
parent | d19e8ef8593bfb543f5f4a32fb8b1e1d2f1c1bd9 (diff) |
improvement: dynamically activate all installed themes (with checks on
parent availability and so on).
git-svn-id: http://piwigo.org/svn/trunk@5340 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/themes.class.php')
-rw-r--r-- | admin/include/themes.class.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php index 82622d878..86651f55f 100644 --- a/admin/include/themes.class.php +++ b/admin/include/themes.class.php @@ -81,6 +81,12 @@ class themes break; } + if ('default' == $theme_id) + { + // you can't activate the "default" theme + break; + } + $missing_parent = $this->missing_parent_theme($theme_id); if (isset($missing_parent)) { |