From 293c0ceb9d954c5bec5dfce59afb8654ce1da667 Mon Sep 17 00:00:00 2001 From: Michael Kaufmann Date: Sun, 31 Jul 2022 16:45:05 +0200 Subject: [PATCH] move needed view() function declaration above first potential usage Signed-off-by: Michael Kaufmann --- lib/init.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/init.php b/lib/init.php index 139b9ce6..b4fe63b5 100644 --- a/lib/init.php +++ b/lib/init.php @@ -26,6 +26,8 @@ // define default theme for configurehint, etc. $_deftheme = 'Froxlor'; +require dirname(__DIR__) . '/lib/functions.php'; + // validate correct php version if (version_compare("7.4.0", PHP_VERSION, ">=")) { die(view($_deftheme . '/misc/phprequirementfailed.html.twig', [ @@ -46,7 +48,6 @@ if (!file_exists(dirname(__DIR__) . '/vendor/autoload.php')) { } require dirname(__DIR__) . '/vendor/autoload.php'; -require dirname(__DIR__) . '/lib/functions.php'; use Froxlor\CurrentUser; use Froxlor\Froxlor;