Skip to content

Commit 6c46277

Browse files
committed
Revert change
1 parent 4328fba commit 6c46277

File tree

1 file changed

+21
-10
lines changed

1 file changed

+21
-10
lines changed

libraries/src/Pagination/Pagination.php

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -577,16 +577,27 @@ public function getLimitBox()
577577
$selected = $this->viewall ? 0 : $this->limit;
578578

579579
// Build the select list.
580-
$html = HTMLHelper::_(
581-
'select.genericlist',
582-
$limits,
583-
$this->prefix . 'limit',
584-
'class="form-select" onchange="Joomla.submitform();"',
585-
'value',
586-
'text',
587-
$selected
588-
);
589-
580+
if ($this->app->isClient('administrator')) {
581+
$html = HTMLHelper::_(
582+
'select.genericlist',
583+
$limits,
584+
$this->prefix . 'limit',
585+
'class="form-select" onchange="Joomla.submitform();"',
586+
'value',
587+
'text',
588+
$selected
589+
);
590+
} else {
591+
$html = HTMLHelper::_(
592+
'select.genericlist',
593+
$limits,
594+
$this->prefix . 'limit',
595+
'class="form-select" onchange="this.form.submit()"',
596+
'value',
597+
'text',
598+
$selected
599+
);
600+
}
590601
return $html;
591602
}
592603

0 commit comments

Comments
 (0)