Move network sidebar widget additional features to core

- Make Archives filter core
- Make Protocol filter core
This commit is contained in:
Hypolite Petovan 2020-07-12 22:52:51 -04:00
parent 6ad8bf0cca
commit d11125d234
2 changed files with 0 additions and 15 deletions

View file

@ -269,10 +269,6 @@ class Widget
return '';
}
if (!Feature::isEnabled(local_user(), 'networks')) {
return '';
}
$extra_sql = self::unavailableNetworks();
$r = DBA::p("SELECT DISTINCT(`network`) FROM `contact` WHERE `uid` = ? AND NOT `deleted` AND `network` != '' $extra_sql ORDER BY `network`",
@ -497,10 +493,6 @@ class Widget
{
$o = '';
if (!Feature::isEnabled($uid, 'archives')) {
return $o;
}
$visible_years = DI::pConfig()->get($uid, 'system', 'archive_visible_years', 5);
/* arrange the list in years */