From 82cef20e608e1da5fc5014b076114fe3b75c2e3d Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 19 Nov 2021 22:47:48 +0100 Subject: [PATCH] Split and delete `ModuleController` - $moduleName is part of the argument string => App\Arguments - $isBackend boolean already part of App\Mode::isBackend() - $module is now the direct return of App\Router::getModule() - ModuleController::run() moved to BaseModule::run() --- rendertime/rendertime.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 135bcc76..79476689 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -29,7 +29,7 @@ function rendertime_page_end(Friendica\App $a, &$o) $duration = microtime(true) - $profiler->get('start'); $ignored_modules = ["fbrowser"]; - $ignored = in_array(DI::module()->getName(), $ignored_modules); + $ignored = in_array(DI::args()->getModuleName(), $ignored_modules); if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) { -- 2.39.5