]> git.mxchange.org Git - friendica-addons.git/commitdiff
[rendertime] Adapt ignored_modules
authorPhilipp <admin@philipp.info>
Fri, 25 Nov 2022 22:43:07 +0000 (23:43 +0100)
committerPhilipp <admin@philipp.info>
Sat, 26 Nov 2022 21:27:17 +0000 (22:27 +0100)
rendertime/rendertime.php

index aa41dfa931bc4019110004d01570cfa0c192618a..397dd662b0981d80790edada9e195c0e85fd9a0e 100644 (file)
@@ -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) {