MDL-66483 lib: remove recent xmlize dep on setuplib/CFG
This removes the dependency added by MDL-66110 (aiming to fix a CI job). So we keep things as they were and will fix the CI job separately.
This commit is contained in:
@@ -39,9 +39,6 @@
|
||||
|
||||
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;
|
||||
|
||||
@@ -2425,8 +2425,8 @@ function glossary_generate_export_file($glossary, $ignored = "", $hook = 0) {
|
||||
* @return string
|
||||
*/
|
||||
function glossary_read_imported_file($file_content) {
|
||||
require_once "../../lib/xmlize.php";
|
||||
global $CFG;
|
||||
require_once "../../lib/xmlize.php";
|
||||
|
||||
return xmlize($file_content, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user