aboutsummaryrefslogtreecommitdiff
path: root/lib/bootstrap.php
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2024-05-16 11:05:47 +0000
committerDavid Siegfried <david.siegfried@uni-vechta.de>2024-05-16 11:05:47 +0000
commitefaeea07319c63be2f2c6a8bd076e4de8ac8f11d (patch)
treeb6c4f4f976cee1e156f8f9dd0fec39a9f09e6242 /lib/bootstrap.php
parentbb2278c43c4992c2cc0fc2d468ad98a395e13962 (diff)
relocate flexi, fixes #4101
Closes #4101 Merge request studip/studip!2977
Diffstat (limited to 'lib/bootstrap.php')
-rw-r--r--lib/bootstrap.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php
index 0c66a97..e9c9bb5 100644
--- a/lib/bootstrap.php
+++ b/lib/bootstrap.php
@@ -54,7 +54,7 @@ $ABSOLUTE_URI_STUDIP = "";
if (isset($_SERVER['SERVER_NAME'])) {
// work around possible bug in lighttpd
if (mb_strpos($_SERVER['SERVER_NAME'], ':') !== false) {
- list($_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']) =
+ [$_SERVER['SERVER_NAME'], $_SERVER['SERVER_PORT']] =
explode(':', $_SERVER['SERVER_NAME']);
}
@@ -125,8 +125,7 @@ Assets::set_assets_url($GLOBALS['ASSETS_URL']);
Assets::set_assets_path($GLOBALS['ASSETS_PATH']);
// globale template factory anlegen
-require_once 'vendor/flexi/lib/flexi.php';
-$GLOBALS['template_factory'] = new Flexi_TemplateFactory("{$STUDIP_BASE_PATH}/templates");
+$GLOBALS['template_factory'] = new Flexi\Factory("{$STUDIP_BASE_PATH}/templates");
// set default pdo connection
try {