aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Pdledit.php
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-01 20:35:52 -0700
committerredmatrix <mike@macgirvin.com>2016-09-01 20:35:52 -0700
commite5c077243c4c01c597c241de7e31df4ae53aedab (patch)
treee37b30afb73ed4bc1d5ff72220b0de2908b9e687 /Zotlabs/Module/Pdledit.php
parentaf87038150dc9405e62c9eab0b0aacd4f13232d3 (diff)
downloadvolse-hubzilla-e5c077243c4c01c597c241de7e31df4ae53aedab.tar.gz
volse-hubzilla-e5c077243c4c01c597c241de7e31df4ae53aedab.tar.bz2
volse-hubzilla-e5c077243c4c01c597c241de7e31df4ae53aedab.zip
check that the advanced_theming feature is enabled before the pdledit module can be accessed.
Diffstat (limited to 'Zotlabs/Module/Pdledit.php')
-rw-r--r--Zotlabs/Module/Pdledit.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/Zotlabs/Module/Pdledit.php b/Zotlabs/Module/Pdledit.php
index 5cb00f165..618444480 100644
--- a/Zotlabs/Module/Pdledit.php
+++ b/Zotlabs/Module/Pdledit.php
@@ -9,6 +9,9 @@ class Pdledit extends \Zotlabs\Web\Controller {
return;
if(! $_REQUEST['module'])
return;
+ if(! feature_enabled(local_channel(),'advanced_theming'))
+ return;
+
if(! trim($_REQUEST['content'])) {
del_pconfig(local_channel(),'system','mod_' . $_REQUEST['module'] . '.pdl');
goaway(z_root() . '/pdledit/' . $_REQUEST['module']);
@@ -26,6 +29,11 @@ class Pdledit extends \Zotlabs\Web\Controller {
notice( t('Permission denied.') . EOL);
return;
}
+
+ if(! feature_enabled(local_channel(),'advanced_theming')) {
+ notice( t('Feature disabled.') . EOL);
+ return;
+ }
if(argc() > 1)
$module = 'mod_' . argv(1) . '.pdl';