Merge pull request #1321 from nupplaphil/mod/fbrowser

[rendertime] Adapt ignored_modules
pull/1322/head
Hypolite Petovan 2022-11-27 08:00:01 -05:00 committed by GitHub
commit 6a2aa4c4a4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View 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\Media\Photo\Browser::class,
\Friendica\Module\Media\Attachment\Browser::class,
];
$ignored = in_array(DI::router()->getModuleClass(), $ignored_modules);
if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {