mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2024-11-16 16:33:58 +00:00
[rendertime] Adapt ignored_modules
This commit is contained in:
parent
7b58c02b1a
commit
6fb41f9429
1 changed files with 5 additions and 2 deletions
|
@ -53,8 +53,11 @@ function rendertime_page_end(App $a, string &$o)
|
||||||
|
|
||||||
$duration = microtime(true) - $profiler->get('start');
|
$duration = microtime(true) - $profiler->get('start');
|
||||||
|
|
||||||
$ignored_modules = ['fbrowser'];
|
$ignored_modules = [
|
||||||
$ignored = in_array(DI::args()->getModuleName(), $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) {
|
if ($a->isSiteAdmin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) {
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue