From: nupplaPhil Date: Mon, 16 Dec 2019 00:35:25 +0000 (+0100) Subject: Remove deprecated App::module - replace with DI::module()->getName() X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=9d9384f5edc09fa50e81690ad3609e63a747f667;p=friendica-addons.git Remove deprecated App::module - replace with DI::module()->getName() --- 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) {