Move PConfig::get() to DI::pConfig()->get()

This commit is contained in:
nupplaPhil
2020-01-18 16:50:57 +01:00
parent 6e2880c679
commit 9e9429b56d
61 changed files with 190 additions and 179 deletions

View File

@@ -293,9 +293,9 @@ class Profile extends BaseModule
// check if we serve a mobile device and get the user settings
// accordingly
if (DI::mode()->isMobile()) {
$itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_mobile_network', 10);
$itemspage_network = DI::pConfig()->get(local_user(), 'system', 'itemspage_mobile_network', 10);
} else {
$itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_network', 20);
$itemspage_network = DI::pConfig()->get(local_user(), 'system', 'itemspage_network', 20);
}
// now that we have the user settings, see if the theme forces