mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Move network sidebar widget additional features to core
- Make Archives filter core - Make Protocol filter core
This commit is contained in:
parent
6ad8bf0cca
commit
d11125d234
2 changed files with 0 additions and 15 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue