diff options
author | Mario <mario@mariovavti.com> | 2019-04-02 14:55:03 +0200 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2019-04-02 14:55:03 +0200 |
commit | a0a2c27973d8b923c3597c611eb23a8a1b010a85 (patch) | |
tree | e4d367e1c58ba33c91b7053518ca7a95a3ea4181 | |
parent | 3fb87ee76ec0fa30774bba713a82d505c8ebd0f3 (diff) | |
download | volse-hubzilla-a0a2c27973d8b923c3597c611eb23a8a1b010a85.tar.gz volse-hubzilla-a0a2c27973d8b923c3597c611eb23a8a1b010a85.tar.bz2 volse-hubzilla-a0a2c27973d8b923c3597c611eb23a8a1b010a85.zip |
Revert "suggestion widget using feature_enabled still - upgrade to use apps."
This reverts commit b2bdc73164f7ede118febf823f729e57e7f4950f
-rw-r--r-- | Zotlabs/Widget/Suggestions.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Widget/Suggestions.php b/Zotlabs/Widget/Suggestions.php index b4f384e9d..5fb3d3e8b 100644 --- a/Zotlabs/Widget/Suggestions.php +++ b/Zotlabs/Widget/Suggestions.php @@ -2,8 +2,6 @@ namespace Zotlabs\Widget; -use Zotlabs\Lib\Apps; - require_once('include/socgraph.php'); @@ -11,9 +9,9 @@ class Suggestions { function widget($arr) { + if((! local_channel()) || (! feature_enabled(local_channel(),'suggest'))) + return ''; - if((! local_channel()) || (! Apps::system_app_installed(local_channel(), 'Suggest Channels'))) - return EMPTY_STR; $r = suggestion_query(local_channel(),get_observer_hash(),0,20); |