From 9d9384f5edc09fa50e81690ad3609e63a747f667 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Mon, 16 Dec 2019 01:35:25 +0100 Subject: [PATCH] Remove deprecated App::module - replace with DI::module()->getName() --- rendertime/rendertime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 31025dce..505bceca 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -36,7 +36,7 @@ function rendertime_page_end(Friendica\App $a, &$o) $duration = microtime(true) - $profiler->get('start'); $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) {