Permalink
Browse files

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

  • Loading branch information...
1 parent c22a0ad commit 17bca7a2b97257b1c5cb137fca359042259d4b7e @damyon damyon committed with timhunt May 9, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 lib/adminlib.php
  2. +1 −1 question/behaviour/manualgraded/db/upgrade.php
View
2 lib/adminlib.php
@@ -4034,7 +4034,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;
}
}
View
2 question/behaviour/manualgraded/db/upgrade.php
@@ -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 17bca7a

Please sign in to comment.