Commit b69c8a0a authored by Robert Lyon's avatar Robert Lyon Committed by Gerrit Code Review
Browse files

Making dropdown pagination not show if results are 10 or less


(Bug #1017281)

Change-Id: I1c7733d878e8a558a9168cd6a8c8e4c088073d22
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent 83606fd6
......@@ -3483,8 +3483,8 @@ function build_pagination($params) {
$params['lasttext'] . ' &raquo;', get_string('lastpage'), $islast, $params['offsetname']);
}
// Build limitoptions dropbox
if ($params['setlimit']) {
// Build limitoptions dropbox if results are more than 10 (minimum dropbox pagination)
if ($params['setlimit'] && $params['count'] > 10) {
$strlimitoptions = array();
$limit = $params['limit'];
for ($i = 0; $i < count($limitoptions); $i++) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment