]> git.mxchange.org Git - friendica.git/blobdiff - include/features.php
tag-cloud: some polishing + remove authors (we don't use it at the moment)
[friendica.git] / include / features.php
index 3ef007cd6111cec0ae3c4d28940bc4aeaab1f2c7..340394ecea36f275860877378e9c01ed74593886 100644 (file)
@@ -16,11 +16,11 @@ use Friendica\Core\PConfig;
 function feature_enabled($uid, $feature) {
        $x = Config::get('feature_lock', $feature);
 
-       if ($x === false) {
+       if (is_null($x)) {
                $x = PConfig::get($uid, 'feature', $feature);
-               if ($x === false) {
+               if (is_null($x)) {
                        $x = Config::get('feature', $feature);
-                       if ($x === false) {
+                       if (is_null($x)) {
                                $x = get_feature_default($feature);
                        }
                }
@@ -114,6 +114,7 @@ function get_features($filtered = true) {
                'advanced_profile' => array(
                        t('Advanced Profile Settings'),
                        array('forumlist_profile', t('List Forums'),                    t('Show visitors public community forums at the Advanced Profile Page'), false, Config::get('feature_lock','forumlist_profile')),
+                       array('tagadelic',      t('Tag Cloud'),                         t('Provide a personal tag cloud on your profile page'), false, Config::get('feature_lock', 'tagadelic')),
                ),
        );
 
@@ -125,7 +126,7 @@ function get_features($filtered = true) {
                        $kquantity = count($arr[$k]);
                        for ($y = 0; $y < $kquantity; $y ++) {
                                if (is_array($arr[$k][$y])) {
-                                       if ($arr[$k][$y][4] === false) {
+                                       if (is_null($arr[$k][$y][4])) {
                                                $has_items = true;
                                        }
                                        else {