forked from friendica/friendica-addons
Merge pull request #1209 from nupplaphil/feat/module_di
[rendertime] Switch to args for module name
This commit is contained in:
commit
5c0b20b21f
1 changed files with 1 additions and 1 deletions
|
@ -29,7 +29,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(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) {
|
if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue