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:
Eloy Lafuente (stronk7)
2019-08-23 11:21:28 +02:00
parent 9e4178a465
commit 9900a6dd47
2 changed files with 1 additions and 4 deletions
-3
View File
@@ -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;
+1 -1
View File
@@ -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);
}