diff options
author | Max Kostikov <max@kostikov.co> | 2019-05-31 23:28:09 +0200 |
---|---|---|
committer | Max Kostikov <max@kostikov.co> | 2019-05-31 23:28:09 +0200 |
commit | 2100ac3cfcb023a0c5ac1658fbc6a629909a4682 (patch) | |
tree | 02e551ac8d0965639f94cd93d0841d5c88cfeab7 | |
parent | d8c3033941d615c671a68dafa7e0d902531ddd37 (diff) | |
parent | c7476a1d96aac832adca9dcf559d4bc7ccc0a5a0 (diff) | |
download | volse-hubzilla-2100ac3cfcb023a0c5ac1658fbc6a629909a4682.tar.gz volse-hubzilla-2100ac3cfcb023a0c5ac1658fbc6a629909a4682.tar.bz2 volse-hubzilla-2100ac3cfcb023a0c5ac1658fbc6a629909a4682.zip |
Merge branch 'dev' into 'dev'
fix category widget when using articles
See merge request hubzilla/core!1664
-rw-r--r-- | Zotlabs/Widget/Categories.php | 3 |
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 ''; |