Remove deprecated App::is_mobile/is_tablet - replace with DI::mode()->isMobile()/isTablet()

This commit is contained in:
nupplaPhil
2019-12-16 01:12:07 +01:00
parent c7230932d6
commit 26af2feee2
8 changed files with 10 additions and 16 deletions
+2 -1
View File
@@ -15,6 +15,7 @@ use Friendica\Core\PConfig;
use Friendica\Core\Renderer;
use Friendica\Core\Session;
use Friendica\Database\DBA;
use Friendica\DI;
use Friendica\Model\Item;
use Friendica\Model\User;
@@ -136,7 +137,7 @@ function community_content(App $a, $update = 0)
}
// 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', 20);
} else {
$itemspage_network = PConfig::get(local_user(), 'system', 'itemspage_network', 40);