From 343ffc10007fec2e76776fd338d065cda8877fc3 Mon Sep 17 00:00:00 2001 From: Jun Pataleta Date: Fri, 23 Aug 2019 10:13:49 +0800 Subject: [PATCH] MDL-66110 core: Require setuplib.php once as it's required by xmlize.php --- lib/xmlize.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/xmlize.php b/lib/xmlize.php index 78cf82b2a87..a8ec8c8d9bc 100644 --- a/lib/xmlize.php +++ b/lib/xmlize.php @@ -39,6 +39,9 @@ defined('MOODLE_INTERNAL') || die(); +// Add setuplib in case it has not been loaded yet as it's required by \xml_format_exception. +require_once($CFG->libdir.'/setuplib.php'); + class xml_format_exception extends moodle_exception { /** @var string */ public $errorstring;