aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2014-01-26 03:27:36 -0800
committerfriendica <info@friendica.com>2014-01-26 03:27:36 -0800
commit0948c3c3ca5aa3621247c7a77a05ac5acd085459 (patch)
treeb05c52358360563cbc4945c42461d73bd0de3f3b /include
parentf90b3b60cb04b63386c9d16eb8dcb6530df979a0 (diff)
downloadvolse-hubzilla-0948c3c3ca5aa3621247c7a77a05ac5acd085459.tar.gz
volse-hubzilla-0948c3c3ca5aa3621247c7a77a05ac5acd085459.tar.bz2
volse-hubzilla-0948c3c3ca5aa3621247c7a77a05ac5acd085459.zip
allow site defaults for enabled features
Diffstat (limited to 'include')
-rw-r--r--include/features.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/features.php b/include/features.php
index 1f83eb319..cc8d457bc 100644
--- a/include/features.php
+++ b/include/features.php
@@ -7,6 +7,8 @@
function feature_enabled($uid,$feature) {
$x = get_pconfig($uid,'feature',$feature);
+ if($x === false)
+ $x = get_config('feature',$feature);
$arr = array('uid' => $uid, 'feature' => $feature, 'enabled' => $x);
call_hooks('feature_enabled',$arr);
return($arr['enabled']);