From 6fb41f942925a32519799e8d4f8695addc1fa5de Mon Sep 17 00:00:00 2001 From: Philipp Date: Fri, 25 Nov 2022 23:43:07 +0100 Subject: [PATCH 1/3] [rendertime] Adapt ignored_modules --- rendertime/rendertime.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index aa41dfa93..397dd662b 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) { From 2f0671ee6e02e11259116d33795f8f1b12b84fc5 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 27 Nov 2022 00:28:29 +0100 Subject: [PATCH 2/3] Move FileBrowser to own namespace & Bugfix album usage --- rendertime/rendertime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 397dd662b..45cd9a899 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -54,8 +54,8 @@ function rendertime_page_end(App $a, string &$o) $duration = microtime(true) - $profiler->get('start'); $ignored_modules = [ - \Friendica\Module\Profile\Photos\Browser::class, - \Friendica\Module\Profile\Attachment\Browser::class, + \Friendica\Module\Media\PhotosBrowser::class, + \Friendica\Module\Media\AttachmentBrowser::class, ]; $ignored = in_array(DI::router()->getModuleClass(), $ignored_modules); From 18783e11c71c8e4b884224c038f93690b9dc9122 Mon Sep 17 00:00:00 2001 From: Philipp Date: Sun, 27 Nov 2022 01:25:58 +0100 Subject: [PATCH 3/3] Move Browser & Upload to own namespace --- rendertime/rendertime.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 45cd9a899..8b4478da1 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -54,8 +54,8 @@ function rendertime_page_end(App $a, string &$o) $duration = microtime(true) - $profiler->get('start'); $ignored_modules = [ - \Friendica\Module\Media\PhotosBrowser::class, - \Friendica\Module\Media\AttachmentBrowser::class, + \Friendica\Module\Media\Photo\Browser::class, + \Friendica\Module\Media\Attachment\Browser::class, ]; $ignored = in_array(DI::router()->getModuleClass(), $ignored_modules);