File tree Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Expand file tree Collapse file tree 1 file changed +21
-10
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments