From 9c95646aa7f8ed85661b22ee7d799b31b053411c Mon Sep 17 00:00:00 2001 From: Shish Date: Fri, 18 Aug 2023 19:49:22 +0100 Subject: [PATCH] only hide deprecation warnings, not all errors --- core/basepage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/basepage.php b/core/basepage.php index 36a56681..c1728955 100644 --- a/core/basepage.php +++ b/core/basepage.php @@ -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);