Revert "suggestion widget using feature_enabled still - upgrade to use apps."
This reverts commit b2bdc73164
This commit is contained in:
parent
3fb87ee76e
commit
a0a2c27973
@ -2,8 +2,6 @@
|
|||||||
|
|
||||||
namespace Zotlabs\Widget;
|
namespace Zotlabs\Widget;
|
||||||
|
|
||||||
use Zotlabs\Lib\Apps;
|
|
||||||
|
|
||||||
require_once('include/socgraph.php');
|
require_once('include/socgraph.php');
|
||||||
|
|
||||||
|
|
||||||
@ -11,9 +9,9 @@ class Suggestions {
|
|||||||
|
|
||||||
function widget($arr) {
|
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);
|
$r = suggestion_query(local_channel(),get_observer_hash(),0,20);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user