diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-12-04 15:00:58 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2023-12-04 15:00:58 +0000 |
| commit | 9ae449f94d2c3c23a272a36c486438430ca454b5 (patch) | |
| tree | 7f1bf367966d809a250e8a34ff02a5119c6a76d1 /lib/bootstrap.php | |
| parent | d375c5134f04c995378fa7af6e853ef7545614a4 (diff) | |
use webp for avatars and convert current avatars, fixes #3183
Closes #3183
Merge request studip/studip!2326
Diffstat (limited to 'lib/bootstrap.php')
| -rw-r--r-- | lib/bootstrap.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/bootstrap.php b/lib/bootstrap.php index e286e93..5690a60 100644 --- a/lib/bootstrap.php +++ b/lib/bootstrap.php @@ -61,8 +61,9 @@ if (isset($_SERVER['SERVER_NAME'])) { $ABSOLUTE_URI_STUDIP .= $CANONICAL_RELATIVE_PATH_STUDIP; } -// default ASSETS_URL, customize if required +// default ASSETS_URL and ASSETS_PATH, customize if required $GLOBALS['ASSETS_URL'] = $ABSOLUTE_URI_STUDIP . 'assets/'; +$GLOBALS['ASSETS_PATH'] = $ABSOLUTE_PATH_STUDIP . 'assets/'; require __DIR__ . '/classes/StudipFileloader.php'; @@ -107,6 +108,7 @@ require_once 'lib/visual.inc.php'; // set assets url 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'; |
