Remove deprecated App::module - replace with DI::module()->getName()
This commit is contained in:
parent
dfd8c4c24f
commit
9d9384f5ed
|
@ -36,7 +36,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($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) {
|
if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user