aboutsummaryrefslogtreecommitdiffstats
path: root/admin/include/themes.class.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2010-04-15 22:08:37 +0000
committerplegall <plg@piwigo.org>2010-04-15 22:08:37 +0000
commit9ee08fcf12cf1ad4fc265383c39b86e43d5611e9 (patch)
tree861ec4c5323ab3e55a9b0bf7c12a995710768d12 /admin/include/themes.class.php
parent228625959d51d5c70164b0f1d243d06aaa05a8ae (diff)
feature 1605: ability to forbid theme activation, needed for gally-default.
git-svn-id: http://piwigo.org/svn/trunk@5874 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'admin/include/themes.class.php')
-rw-r--r--admin/include/themes.class.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/admin/include/themes.class.php b/admin/include/themes.class.php
index cf81fb54e..832110e8e 100644
--- a/admin/include/themes.class.php
+++ b/admin/include/themes.class.php
@@ -382,6 +382,10 @@ SELECT
{
$theme['parent'] = $val[1];
}
+ if (preg_match('/["\']activable["\'].*?(true|false)/', $theme_data, $val))
+ {
+ $theme['activable'] = get_boolean($val[1]);
+ }
// screenshot
$screenshot_path = $path.'/screenshot.png';