From a36a5a1cbeda1d100616d73598c056213a3a995d Mon Sep 17 00:00:00 2001 From: Alexander Loewe <Alexander.Loewe@Outlook.de> Date: Mon, 22 Jul 2024 10:17:38 +0200 Subject: [PATCH] Removed Deprecated Imports --- locallib.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/locallib.php b/locallib.php index 1d2201b..2014372 100644 --- a/locallib.php +++ b/locallib.php @@ -113,8 +113,6 @@ define('DEFAULT_INITIAL_DISPLAY_ROWS', 5); define('GRADERID_SEPARATOR', '$'); require_once($CFG->dirroot . '/question/engine/lib.php'); -require_once($CFG->dirroot . '/mod/quiz/attemptlib.php'); -require_once($CFG->dirroot . '/mod/quiz/accessmanager.php'); use qtype_moopt\exceptions\resource_not_found_exception; use qtype_moopt\utility\communicator\communicator_factory; @@ -306,10 +304,10 @@ function get_text_content_from_file($usercontext, $draftareaid, $keepfilename, $ } } if($enc!=='UTF-8'){ - $content = mb_convert_encoding($content, 'UTF-8', $enc); + $content = mb_convert_encoding($content, 'UTF-8', $enc); } } - + return $content; } -- GitLab