Merge pull request #1209 from nupplaphil/feat/module_di

[rendertime] Switch to args for module name
This commit is contained in:
Hypolite Petovan 2021-11-27 17:11:16 -05:00 committed by GitHub
commit 5c0b20b21f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {