mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
more globals fixed
This commit is contained in:
parent
4f96fe55af
commit
df0442c67e
4 changed files with 5 additions and 4 deletions
|
@ -106,6 +106,7 @@ class lesson_page_type_endofcluster extends lesson_page {
|
|||
return true;
|
||||
}
|
||||
public function override_next_page() {
|
||||
global $DB;
|
||||
$jump = $DB->get_field("lesson_answers", "jumpto", array("pageid" => $this->properties->id, "lessonid" => $this->lesson->id));
|
||||
if ($jump == LESSON_NEXTPAGE) {
|
||||
if ($this->properties->nextpageid == 0) {
|
||||
|
|
|
@ -132,7 +132,7 @@ class lesson_page_type_matching extends lesson_page {
|
|||
}
|
||||
|
||||
public function check_answer() {
|
||||
global $CFG;
|
||||
global $CFG, $PAGE;
|
||||
|
||||
$formattextdefoptions = new object();
|
||||
$formattextdefoptions->noclean = true;
|
||||
|
|
|
@ -99,7 +99,7 @@ class lesson_page_type_multichoice extends lesson_page {
|
|||
}
|
||||
|
||||
public function check_answer() {
|
||||
global $DB, $CFG;
|
||||
global $DB, $CFG, $PAGE;
|
||||
$result = parent::check_answer();
|
||||
|
||||
$formattextdefoptions = new object();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue