Browse Source

Remove deprecated App::module - replace with DI::module()->getName()

pull/927/head
nupplaPhil 3 years ago
parent
commit
9d9384f5ed
No known key found for this signature in database
GPG Key ID: D8365C3D36B77D90
  1. 2
      rendertime/rendertime.php

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

Loading…
Cancel
Save