X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=rendertime%2Frendertime.php;h=627c8cd9a8e2a2f2210817469f03abd38e733f1f;hb=46de1b8b89980513d50275d9d8c78681dff82b56;hp=505bceca59d1afc7f431acd00579acd8eb5b10f3;hpb=9d9384f5edc09fa50e81690ad3609e63a747f667;p=friendica-addons.git diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index 505bceca..627c8cd9 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -8,19 +8,12 @@ */ use Friendica\Core\Hook; -use Friendica\Core\L10n; use Friendica\DI; function rendertime_install() { Hook::register('page_end', 'addon/rendertime/rendertime.php', 'rendertime_page_end'); } - -function rendertime_uninstall() { - Hook::unregister('init_1', 'addon/rendertime/rendertime.php', 'rendertime_init_1'); - Hook::unregister('page_end', 'addon/rendertime/rendertime.php', 'rendertime_page_end'); -} - function rendertime_init_1(&$a) { } @@ -40,7 +33,7 @@ function rendertime_page_end(Friendica\App $a, &$o) if (is_site_admin() && (($_GET['mode'] ?? '') != 'minimal') && !DI::mode()->isMobile() && !DI::mode()->isMobile() && !$ignored) { - $o = $o . '
'; - $o .= $profiler->getRendertimeString(); + $o .= $profiler->getRendertimeString(DI::config()->get('rendertime', 'minimal_time', 0)); $o .= ''; } }