aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Widget/Categories.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2019-05-31 14:19:04 -0700
committerzotlabs <mike@macgirvin.com>2019-05-31 14:19:04 -0700
commitc7476a1d96aac832adca9dcf559d4bc7ccc0a5a0 (patch)
tree45605caae1ac4c7e3526e6bcb8f71528583e1990 /Zotlabs/Widget/Categories.php
parentb6267ec7c2e5d820c900603fcba5bf46cf2e5f90 (diff)
downloadvolse-hubzilla-c7476a1d96aac832adca9dcf559d4bc7ccc0a5a0.tar.gz
volse-hubzilla-c7476a1d96aac832adca9dcf559d4bc7ccc0a5a0.tar.bz2
volse-hubzilla-c7476a1d96aac832adca9dcf559d4bc7ccc0a5a0.zip
fix category widget when using articles
Diffstat (limited to 'Zotlabs/Widget/Categories.php')
-rw-r--r--Zotlabs/Widget/Categories.php3
1 files changed, 1 insertions, 2 deletions
diff --git a/Zotlabs/Widget/Categories.php b/Zotlabs/Widget/Categories.php
index 27d4b5980..82c37cd0c 100644
--- a/Zotlabs/Widget/Categories.php
+++ b/Zotlabs/Widget/Categories.php
@@ -18,10 +18,9 @@ class Categories {
$articles = ((array_key_exists('articles',$arr) && $arr['articles']) ? true : false);
- if(($articles) && (! feature_enabled(App::$profile['profile_uid'],'articles')))
+ if(($articles) && (! Apps::system_app_installed(App::$profile['profile_uid'],'Articles')))
return '';
-
if((! App::$profile['profile_uid'])
|| (! perm_is_allowed(App::$profile['profile_uid'],get_observer_hash(),(($cards || $articles) ? 'view_pages' : 'view_stream')))) {
return '';