This commit is contained in:
marijus
2014-01-26 14:43:07 +01:00
5 changed files with 27 additions and 5 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']);