From 33dae7eb94dfa575429b873ac560e8c4237ca5a1 Mon Sep 17 00:00:00 2001 From: nupplaPhil Date: Sun, 15 Dec 2019 23:50:35 +0100 Subject: [PATCH] Refactor dynamic App::getProfiler() to static DI::profiler() --- rendertime/rendertime.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rendertime/rendertime.php b/rendertime/rendertime.php index a54fc489..2ed7ee40 100644 --- a/rendertime/rendertime.php +++ b/rendertime/rendertime.php @@ -9,6 +9,7 @@ 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'); @@ -30,7 +31,7 @@ function rendertime_init_1(&$a) { function rendertime_page_end(Friendica\App $a, &$o) { - $profiler = $a->getProfiler(); + $profiler = DI::profiler(); $duration = microtime(true) - $profiler->get('start'); -- 2.39.5