more globals fixed

This commit is contained in:
Petr Skoda 2010-09-18 13:07:45 +00:00
parent 4f96fe55af
commit df0442c67e
4 changed files with 5 additions and 4 deletions

View file

@ -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) {

View file

@ -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;

View file

@ -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();