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

pull/927/head
nupplaPhil 2019-12-16 01:12:07 +01:00
parent 4b6527e273
commit 5060f3c0aa
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
3 changed files with 3 additions and 3 deletions

View File

@ -38,7 +38,7 @@ function rendertime_page_end(Friendica\App $a, &$o)
$ignored_modules = ["fbrowser"];
$ignored = in_array($a->module, $ignored_modules);
if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !$a->is_mobile && !$a->is_tablet && !$ignored) {
if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
$o = $o . '<div class="renderinfo">' . L10n::t("Database: %s/%s, Network: %s, Rendering: %s, Session: %s, I/O: %s, Other: %s, Total: %s",
round($profiler->get('database') - $profiler->get('database_write'), 3),

View File

@ -33,7 +33,7 @@ function show_button(Friendica\App $a, &$b) {
return;
// Disable for mobile because most mobiles have a smiley key for ther own
if ($a->is_mobile || $a->is_tablet)
if (DI::mode()->isMobile() || DI::mode()->isMobile())
return;
/**

View File

@ -143,7 +143,7 @@ function xmpp_converse(App $a)
return;
}
if ($a->is_mobile || $a->is_tablet) {
if (DI::mode()->isMobile() || DI::mode()->isMobile()) {
return;
}