Remove deprecated App::module - replace with DI::module()->getName()

pull/927/head
nupplaPhil 2019-12-16 01:35:25 +01:00
parent dfd8c4c24f
commit 9d9384f5ed
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ function rendertime_page_end(Friendica\App $a, &$o)
$duration = microtime(true) - $profiler->get('start'); $duration = microtime(true) - $profiler->get('start');
$ignored_modules = ["fbrowser"]; $ignored_modules = ["fbrowser"];
$ignored = in_array($a->module, $ignored_modules); $ignored = in_array(DI::module()->getName(), $ignored_modules);
if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) { if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {