Skip to content

Commit

Permalink
Fixed question bank view compatibilitly issue with 3.4 and earlier.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastsg committed Oct 31, 2018
1 parent b405e18 commit 0f13d53
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
11 changes: 11 additions & 0 deletions classes/bank/jazzquiz_question_bank_view.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,16 @@ protected function wanted_columns() {
return $this->requiredcolumns;
}

/**
* Display the header element for the question bank.
* This is a copy of the super class method in 3.5+, and only exists for compatibility with 3.4 and earlier.
* TODO: This override should be removed in the future.
*/
protected function display_question_bank_header() {
global $OUTPUT;
echo $OUTPUT->heading(get_string('questionbank', 'question'), 2);
}

/**
* Shows the question bank editing interface.
* @param string $tabname
Expand Down Expand Up @@ -177,4 +187,5 @@ private function create_new_question_button($categoryid, $params, $caption, $too
// Add some top margin to the table (not viable via CSS).
echo '<br><br>';
}

}
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2018103100; // The current module version (Date: YYYYMMDDXX)
$plugin->version = 2018103101; // The current module version (Date: YYYYMMDDXX)
$plugin->requires = 2016052304; // Moodle 3.1 (or above)
$plugin->cron = 0; // Period in seconds for cron to run.
$plugin->component = 'mod_jazzquiz';
$plugin->maturity = MATURITY_STABLE;
$plugin->release = '0.9.1 (Build: 2018103100)';
$plugin->release = '0.9.1 (Build: 2018103101)';

0 comments on commit 0f13d53

Please sign in to comment.