Skip to content

Commit

Permalink
MDL-53382 core: Move select all link
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewhancox committed Apr 7, 2016
1 parent b611ade commit 8dd42b3
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions user/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,17 @@

}

$perpageurl = clone($baseurl);
$perpageurl->remove_params('perpage');
if ($perpage == SHOW_ALL_PAGE_SIZE) {
$perpageurl->param('perpage', DEFAULT_PAGE_SIZE);
echo $OUTPUT->container(html_writer::link($perpageurl, get_string('showperpage', '', DEFAULT_PAGE_SIZE)), array(), 'showall');

} else if ($matchcount > 0 && $perpage < $matchcount) {
$perpageurl->param('perpage', SHOW_ALL_PAGE_SIZE);
echo $OUTPUT->container(html_writer::link($perpageurl, get_string('showall', '', $matchcount)), array(), 'showall');
}

if ($bulkoperations) {
echo '<br /><div class="buttons">';

Expand Down Expand Up @@ -859,17 +870,6 @@
echo '<input type="text" id="search" name="search" value="'.s($search).'" />&nbsp;<input type="submit" value="'.get_string('search').'" /></div></form>'."\n";
}

$perpageurl = clone($baseurl);
$perpageurl->remove_params('perpage');
if ($perpage == SHOW_ALL_PAGE_SIZE) {
$perpageurl->param('perpage', DEFAULT_PAGE_SIZE);
echo $OUTPUT->container(html_writer::link($perpageurl, get_string('showperpage', '', DEFAULT_PAGE_SIZE)), array(), 'showall');

} else if ($matchcount > 0 && $perpage < $matchcount) {
$perpageurl->param('perpage', SHOW_ALL_PAGE_SIZE);
echo $OUTPUT->container(html_writer::link($perpageurl, get_string('showall', '', $matchcount)), array(), 'showall');
}

echo '</div>'; // Userlist.

echo $OUTPUT->footer();
Expand Down

0 comments on commit 8dd42b3

Please sign in to comment.