Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Added $CFG->coursesperpage which changes default paging of category l…

…isting
  • Loading branch information...
commit bf08108c9406582d155de531d9918f25c1037d8a 1 parent f610ac5
moodler authored

Showing 3 changed files with 3 additions and 2 deletions. Show diff stats Hide diff stats

  1. +1 1  course/category.php
  2. +1 0  lib/defaults.php
  3. +1 1  version.php
2  course/category.php
@@ -8,7 +8,7 @@
8 8
9 9 $id = required_param('id', PARAM_INT); // Category id
10 10 $page = optional_param('page', 0, PARAM_INT); // which page to show
11   - $perpage = optional_param('perpage', 20, PARAM_INT); // how many per page
  11 + $perpage = optional_param('perpage', $CFG->coursesperpage, PARAM_INT); // how many per page
12 12 $edit = optional_param('edit', -1, PARAM_BOOL);
13 13 $hide = optional_param('hide', 0, PARAM_INT);
14 14 $show = optional_param('show', 0, PARAM_INT);
1  lib/defaults.php
@@ -21,6 +21,7 @@
21 21 'cachetext' => 60,
22 22 'changepassword' => '',
23 23 'country' => '',
  24 + 'coursesperpage' => 20,
24 25 'clamfailureonupload' => 'donothing',
25 26 'dbsessions' => false,
26 27 'debug' => 5,
2  version.php
@@ -6,7 +6,7 @@
6 6 // This is compared against the values stored in the database to determine
7 7 // whether upgrades should be performed (see lib/db/*.php)
8 8
9   - $version = 2006050512; // YYYYMMDD = date of the 1.6 branch (don't change)
  9 + $version = 2006050513; // YYYYMMDD = date of the 1.6 branch (don't change)
10 10 // X = release number 1.6.[0,1,2,3...]
11 11 // Y = micro-increments between releases
12 12

0 comments on commit bf08108

Please sign in to comment.
Something went wrong with that request. Please try again.