From dac6f39f4184dfd9aa2ab8fc26be75f6e8c8f9bd Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Wed, 11 Nov 2015 01:29:31 +0100 Subject: [PATCH] forumlist: use a more unique identifier --- include/features.php | 2 +- include/forums.php | 2 +- mod/network.php | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/features.php b/include/features.php index 8eee2daa17..3aaa22d639 100644 --- a/include/features.php +++ b/include/features.php @@ -38,7 +38,7 @@ function get_features() { 'widgets' => array( t('Network Sidebar Widgets'), array('archives', t('Search by Date'), t('Ability to select posts by date ranges')), - array('forumlist', t('List Forums'), t('Enable widget to display the forums your are connected with')), + array('forumlist_widget', t('List Forums'), t('Enable widget to display the forums your are connected with')), array('groups', t('Group Filter'), t('Enable widget to display Network posts only from selected group')), array('networks', t('Network Filter'), t('Enable widget to display Network posts only from selected network')), array('savedsearch', t('Saved Searches'), t('Save search terms for re-use')), diff --git a/include/forums.php b/include/forums.php index c515162420..425a5e6234 100644 --- a/include/forums.php +++ b/include/forums.php @@ -64,7 +64,7 @@ function get_forumlist($uid, $showhidden = true, $lastitem, $showprivate = false */ function widget_forumlist($a) { - if(! intval(feature_enabled(local_user(),'forumlist'))) + if(! intval(feature_enabled(local_user(),'forumlist_widget'))) return; $o = ''; diff --git a/mod/network.php b/mod/network.php index 07a6bbd8e6..903ee41548 100644 --- a/mod/network.php +++ b/mod/network.php @@ -146,7 +146,7 @@ function network_init(&$a) { } $a->page['aside'] .= (feature_enabled(local_user(),'groups') ? group_side('network/0','network',true,$group_id) : ''); - $a->page['aside'] .= (feature_enabled(local_user(),'forumlist') ? widget_forumlist($a) : ''); + $a->page['aside'] .= (feature_enabled(local_user(),'forumlist_widget') ? widget_forumlist($a) : ''); $a->page['aside'] .= posted_date_widget($a->get_baseurl() . '/network',local_user(),false); $a->page['aside'] .= networks_widget($a->get_baseurl(true) . '/network',(x($_GET, 'nets') ? $_GET['nets'] : '')); $a->page['aside'] .= saved_searches($search);