diff options
author | friendica <redmatrix@redmatrix.me> | 2015-04-15 22:07:20 -0700 |
---|---|---|
committer | friendica <redmatrix@redmatrix.me> | 2015-04-15 22:07:20 -0700 |
commit | 32f79374b0e1a6d21204d8a51f2c3c60b28c95ca (patch) | |
tree | 4686af7bb1dc95f439820aac9c7d07735da3d27a /include | |
parent | 4d31d22d5c97ab2a2b79ff8a008cc67921182527 (diff) | |
download | volse-hubzilla-32f79374b0e1a6d21204d8a51f2c3c60b28c95ca.tar.gz volse-hubzilla-32f79374b0e1a6d21204d8a51f2c3c60b28c95ca.tar.bz2 volse-hubzilla-32f79374b0e1a6d21204d8a51f2c3c60b28c95ca.zip |
don't show directory keywords widget if globaldir setting is off
Diffstat (limited to 'include')
-rw-r--r-- | include/taxonomy.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/taxonomy.php b/include/taxonomy.php index 4333cdf03..fa540ac56 100644 --- a/include/taxonomy.php +++ b/include/taxonomy.php @@ -275,6 +275,11 @@ function catblock($uid,$count = 0,$authors = '',$flags = 0,$restrict = 0,$type = function dir_tagblock($link,$r) { $o = ''; + $observer = get_observer_hash(); + if(! get_globaldir_setting($observer)) + return $o; + + if(! $r) $r = get_app()->data['directory_keywords']; |