Permalink
Browse files

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

  • Loading branch information...
damyon authored and timhunt committed May 9, 2013
1 parent 342dc20 commit 95f982b0ac681e74b10918da54b731080d03c02e
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/adminlib.php
  2. +1 −1 question/behaviour/manualgraded/db/upgrade.php
View
@@ -3842,7 +3842,7 @@ public function __construct($name, $visiblename, $description, $default) {
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 {

0 comments on commit 95f982b

Please sign in to comment.