MDL-39412 Prevent developer warnings on upgrade from 24 to master

This commit is contained in:
Damyon Wiese
2013-05-09 11:26:25 +08:00
parent cbdb09a9ef
commit a04e97ef0c
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4142,7 +4142,7 @@ class admin_setting_question_behaviour extends admin_setting_configselect {
public function load_choices() {
global $CFG;
require_once($CFG->dirroot . '/question/engine/lib.php');
$this->choices = question_engine::get_behaviour_options();
$this->choices = question_engine::get_behaviour_options('');
return true;
}
}
@@ -64,7 +64,7 @@ function xmldb_qbehaviour_manualgraded_upgrade($oldversion) {
// Work out a sensible default alternative to manualgraded.
require_once($CFG->libdir . '/questionlib.php');
$behaviours = question_engine::get_behaviour_options();
$behaviours = question_engine::get_behaviour_options('');
if (array_key_exists('deferredfeedback', $behaviours)) {
$defaultbehaviour = 'deferredfeedback';
} else {