Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-31130 question bank: toggling show all / 20 per page broken.

  • Loading branch information...
commit ee2e29d19ed70ec1e2324367f9c23610b84893a2 1 parent c1dc3a5
@jonof jonof authored timhunt committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 question/editlib.php
View
4 question/editlib.php
@@ -1360,10 +1360,10 @@ protected function display_question_list($contexts, $pageurl, $categoryandcontex
echo $OUTPUT->render($pagingbar);
if ($totalnumber > DEFAULT_QUESTIONS_PER_PAGE) {
if ($perpage == DEFAULT_QUESTIONS_PER_PAGE) {
- $url = new moodle_url('edit.php', ($pageurl->params()+array('qperpage'=>1000)));
+ $url = new moodle_url('edit.php', array_merge($pageurl->params(), array('qperpage'=>1000)));
$showall = '<a href="'.$url.'">'.get_string('showall', 'moodle', $totalnumber).'</a>';
} else {
- $url = new moodle_url('edit.php', ($pageurl->params()+array('qperpage'=>DEFAULT_QUESTIONS_PER_PAGE)));
+ $url = new moodle_url('edit.php', array_merge($pageurl->params(), array('qperpage'=>DEFAULT_QUESTIONS_PER_PAGE)));
$showall = '<a href="'.$url.'">'.get_string('showperpage', 'moodle', DEFAULT_QUESTIONS_PER_PAGE).'</a>';
}
echo "<div class='paging'>$showall</div>";

0 comments on commit ee2e29d

Please sign in to comment.
Something went wrong with that request. Please try again.