From: Philipp Date: Fri, 25 Nov 2022 22:43:07 +0000 (+0100) Subject: [rendertime] Adapt ignored_modules X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=6fb41f942925a32519799e8d4f8695addc1fa5de;p=friendica-addons.git [rendertime] Adapt ignored_modules --- diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index aa41dfa9..397dd662 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -53,8 +53,11 @@ function rendertime_page_end(App $a, string &$o) $duration = microtime(true) - $profiler->get('start'); - $ignored_modules = ['fbrowser']; - $ignored = in_array(DI::args()->getModuleName(), $ignored_modules); + $ignored_modules = [ + \Friendica\Module\Profile\Photos\Browser::class, + \Friendica\Module\Profile\Attachment\Browser::class, + ]; + $ignored = in_array(DI::router()->getModuleClass(), $ignored_modules); if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {