mirror of
https://github.com/friendica/friendica
synced 2025-04-22 12:30:12 +00:00
Remove deprecated App::is_mobile/is_tablet - replace with DI::mode()->isMobile()/isTablet()
This commit is contained in:
parent
c7230932d6
commit
26af2feee2
8 changed files with 10 additions and 16 deletions
|
@ -290,7 +290,7 @@ class Profile extends BaseModule
|
|||
|
||||
// check if we serve a mobile device and get the user settings
|
||||
// accordingly
|
||||
if ($a->is_mobile) {
|
||||
if (DI::mode()->isMobile()) {
|
||||
$itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_mobile_network', 10);
|
||||
} else {
|
||||
$itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_network', 20);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue