allow site defaults for enabled features

This commit is contained in:
friendica
2014-01-26 03:27:36 -08:00
parent f90b3b60cb
commit 0948c3c3ca
2 changed files with 3 additions and 1 deletions

View File

@@ -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']);