mirror of
https://git.friendi.ca/friendica/friendica.git
synced 2025-06-17 03:25:15 +02:00
Merge pull request #8130 from nupplaphil/task/di_pconfig
Move PConfig to DI::pConfig()
This commit is contained in:
commit
58f69481e6
64 changed files with 269 additions and 398 deletions
|
@ -10,7 +10,6 @@ use Friendica\Core\Cache\Duration;
|
|||
use Friendica\Core\Config;
|
||||
use Friendica\Core\Hook;
|
||||
use Friendica\Core\L10n;
|
||||
use Friendica\Core\PConfig;
|
||||
use Friendica\Database\DBA;
|
||||
use Friendica\DI;
|
||||
use Friendica\Model\Contact;
|
||||
|
@ -453,7 +452,7 @@ function ping_get_notifications($uid)
|
|||
&& empty($result[$notification["parent"]])
|
||||
) {
|
||||
// Should we condense the notifications or show them all?
|
||||
if (PConfig::get(local_user(), 'system', 'detailed_notif')) {
|
||||
if (DI::pConfig()->get(local_user(), 'system', 'detailed_notif')) {
|
||||
$result[$notification["id"]] = $notification;
|
||||
} else {
|
||||
$result[$notification["parent"]] = $notification;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue