move needed view() function declaration above first potential usage

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-07-31 16:45:05 +02:00
parent 5b3ea24725
commit 293c0ceb9d

View File

@@ -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;