aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-03-31 16:22:02 -0700
committerzotlabs <mike@macgirvin.com>2019-03-31 16:22:02 -0700
commitb2bdc73164f7ede118febf823f729e57e7f4950f (patch)
tree1e7e855f63d11f38d5dc4f4bec2daa374a16b460 /Zotlabs/Widget
parentdc4a4ca9d3f170ee74716702c4039f2d49af42e5 (diff)
downloadvolse-hubzilla-b2bdc73164f7ede118febf823f729e57e7f4950f.tar.gz
volse-hubzilla-b2bdc73164f7ede118febf823f729e57e7f4950f.tar.bz2
volse-hubzilla-b2bdc73164f7ede118febf823f729e57e7f4950f.zip
suggestion widget using feature_enabled still - upgrade to use apps.
Diffstat (limited to 'Zotlabs/Widget')
-rw-r--r--Zotlabs/Widget/Suggestions.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Suggestions.php b/Zotlabs/Widget/Suggestions.php
index 5fb3d3e8b..b4f384e9d 100644
--- a/Zotlabs/Widget/Suggestions.php
+++ b/Zotlabs/Widget/Suggestions.php
@@ -2,6 +2,8 @@
namespace Zotlabs\Widget;
+use Zotlabs\Lib\Apps;
+
require_once('include/socgraph.php');
@@ -9,9 +11,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);