Skip to content

Instantly share code, notes, and snippets.

@mudrd8mz
Created March 7, 2013 14:38
Show Gist options
  • Save mudrd8mz/5108467 to your computer and use it in GitHub Desktop.
Save mudrd8mz/5108467 to your computer and use it in GitHub Desktop.
diff --git a/mod/workshop/renderer.php b/mod/workshop/renderer.php
index 3b67672..63570c2 100644
--- a/mod/workshop/renderer.php
+++ b/mod/workshop/renderer.php
@@ -712,7 +712,7 @@ class mod_workshop_renderer extends plugin_renderer_base {
public function perpage_selector($current=10) {
$options = array();
- foreach (array(10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500, 1000) as $option) {
+ foreach (array(1, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, 200, 300, 400, 500, 1000) as $option) {
if ($option != $current) {
$options[$option] = $option;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment