[BS5] bug fixes

This commit is contained in:
FreddleSpl0it
2022-03-31 20:16:44 +02:00
parent b980e7af29
commit 051d08b499
8 changed files with 27 additions and 24 deletions

View File

@@ -254,10 +254,10 @@ $css_dir = array_diff(scandir('/web/css/build'), array('..', '.'));
$UI_TEXTS = customize('get', 'ui_texts');
$UI_THEME = "lumen"; // TODO: customize('get', 'ui_theme');
// minify bootstrap theme
if (file_exists('../css/themes'.$UI_THEME.'-bootstrap.css'))
$css_minifier->add('../css/themes/'.$UI_THEME.'-bootstrap.css');
if (file_exists('/web/css/themes'.$UI_THEME.'-bootstrap.css'))
$css_minifier->add('/web/css/themes/'.$UI_THEME.'-bootstrap.css');
else
$css_minifier->add('../css/themes/lumen-bootstrap.css');
$css_minifier->add('/web/css/themes/lumen-bootstrap.css');
// minify css build files
foreach ($css_dir as $css_file) {
$css_minifier->add('/web/css/build/' . $css_file);