only hide deprecation warnings, not all errors

This commit is contained in:
Shish 2023-08-18 19:49:22 +01:00 committed by Shish
parent d0faf29c9f
commit 9c95646aa7

View file

@ -395,7 +395,7 @@ class BasePage
if (!file_exists($css_cache_file)) {
// the CSS minifier causes a bunch of deprecation warnings,
// so we turn off error reporting while it runs
$old_error_level = error_reporting(0);
$old_error_level = error_reporting(error_reporting(null) & ~E_DEPRECATED);
$parser = new Parser();
foreach($css_files as $file) {
$parser->append($file);