mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-12 01:54:26 +02:00
Move PConfig::get() to DI::pConfig()->get()
This commit is contained in:
parent
6e2880c679
commit
9e9429b56d
61 changed files with 190 additions and 179 deletions
|
@ -51,7 +51,7 @@ class Widget
|
|||
$global_dir = Config::get('system', 'directory');
|
||||
|
||||
if (Config::get('system', 'invitation_only')) {
|
||||
$x = intval(PConfig::get(local_user(), 'system', 'invites_remaining'));
|
||||
$x = intval(DI::pConfig()->get(local_user(), 'system', 'invites_remaining'));
|
||||
if ($x || is_site_admin()) {
|
||||
DI::page()['aside'] .= '<div class="side-link widget" id="side-invite-remain">'
|
||||
. L10n::tt('%d invitation available', '%d invitations available', $x)
|
||||
|
@ -267,7 +267,7 @@ class Widget
|
|||
return '';
|
||||
}
|
||||
|
||||
$saved = PConfig::get(local_user(), 'system', 'filetags');
|
||||
$saved = DI::pConfig()->get(local_user(), 'system', 'filetags');
|
||||
if (!strlen($saved)) {
|
||||
return;
|
||||
}
|
||||
|
@ -310,7 +310,7 @@ class Widget
|
|||
return '';
|
||||
}
|
||||
|
||||
$saved = PConfig::get($uid, 'system', 'filetags');
|
||||
$saved = DI::pConfig()->get($uid, 'system', 'filetags');
|
||||
if (!strlen($saved)) {
|
||||
return;
|
||||
}
|
||||
|
@ -455,7 +455,7 @@ class Widget
|
|||
return $o;
|
||||
}
|
||||
|
||||
$visible_years = PConfig::get($uid, 'system', 'archive_visible_years', 5);
|
||||
$visible_years = DI::pConfig()->get($uid, 'system', 'archive_visible_years', 5);
|
||||
|
||||
/* arrange the list in years */
|
||||
$dnow = DateTimeFormat::localNow('Y-m-d');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue