Skip to content

Commit

Permalink
Merge branch 'MDL-71127-39' of git://github.com/paulholden/moodle int…
Browse files Browse the repository at this point in the history
…o MOODLE_39_STABLE
  • Loading branch information
sarjona committed Apr 28, 2021
2 parents 18a99ed + f3f7f28 commit 3232769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mod/quiz/classes/question/bank/custom_view.php
Expand Up @@ -24,8 +24,8 @@
*/

namespace mod_quiz\question\bank;
defined('MOODLE_INTERNAL') || die();

use coding_exception;

/**
* Subclass to customise the view of the question bank for the quiz editing screen.
Expand Down Expand Up @@ -81,7 +81,7 @@ protected function wanted_columns() {
$fullname, DEBUG_DEVELOPER);
$fullname = 'question_bank_' . $fullname;
} else {
throw new coding_exception("No such class exists: $fullname");
throw new coding_exception('Invalid quiz question bank column', $fullname);
}
}
$this->requiredcolumns[$fullname] = new $fullname($this);
Expand Down

0 comments on commit 3232769

Please sign in to comment.