From 9bf3c567e39f0dd9a0aa095a83445f906bd45bad Mon Sep 17 00:00:00 2001 From: Abhishek Kumar Date: Mon, 31 Jul 2023 12:01:19 +0530 Subject: [PATCH] Fix PHP warning on Preferences > General page --- classes/Tools.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/classes/Tools.php b/classes/Tools.php index c48c02177..58ab06580 100644 --- a/classes/Tools.php +++ b/classes/Tools.php @@ -3603,6 +3603,8 @@ exit; public static function purifyHTML($html, $uri_unescape = null, $allow_style = false) { + require_once(_PS_TOOL_DIR_.'htmlpurifier/HTMLPurifier.auto.php'); + static $use_html_purifier = null; static $purifier = null;