Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-34273

Ability to set $courses_limit in block_course_overview in front-end admin

XMLWordPrintable

    • MOODLE_22_STABLE

      Can we please have the ability to change the $courses_limit variable in blocks/course_overview/block_course_overview.php from the front-end administration?

      The PHP seems to suggest that if mycoursesperpage is set, then that is how many courses should be shown on this page, but it doesn't seem to work? Moodle 2.2.4

      // limits the number of courses showing up
      $courses_limit = 21;
      // FIXME: this should be a block setting, rather than a global setting
      if (isset($CFG->mycoursesperpage))

      { $courses_limit = $CFG->mycoursesperpage; }

      Changing the $courses_limit = 21; line to a higher value 'fixes' the problem, but would be good to have this working from the site admin.

            moodle.com Moodle HQ
            kihitara Miriam Laidlaw
            Votes:
            4 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.