aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2019-04-02 14:59:35 +0200
committerMario <mario@mariovavti.com>2019-04-02 14:59:35 +0200
commit4346d7605d14d4795fc75bedd8517b32287d0c2b (patch)
tree2dd0c786bc8f238da9082dac9533571e619c33c8 /Zotlabs
parenta0a2c27973d8b923c3597c611eb23a8a1b010a85 (diff)
downloadvolse-hubzilla-4346d7605d14d4795fc75bedd8517b32287d0c2b.tar.gz
volse-hubzilla-4346d7605d14d4795fc75bedd8517b32287d0c2b.tar.bz2
volse-hubzilla-4346d7605d14d4795fc75bedd8517b32287d0c2b.zip
Revert "Revert "suggestion widget using feature_enabled still - upgrade to use apps.""
This reverts commit a0a2c27973d8b923c3597c611eb23a8a1b010a85
Diffstat (limited to 'Zotlabs')
-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);