Reports: Core Patchs

Maintained by Picture of Valery FremauxValery Fremaux
Scans the whole code base and searches marked patches in Moodle code.

Core Patchs 2.2.0 (build 2012062800)

Release notes

Patch Report is a special report dedicated to Moodle integrators that want to
track and maintain core patchs for customers, and facilitate global upgrade of patched

The report scans the whole code base for special markers that will tag patch start
and patch end in core code.

It will display all patch reference and locations.


just unzip in the /admin/report directory of your Moodle installation


Patch Start Mark
Patch end mark
File patterns to exclude

How to operate

The Patch Report works :

- if patches are properly tagged with a parsable start and end mark (defaults to "// PATCH : some reason" and "// /PATCH")
- if marks are properly setup as RegExps in settings.

When this setup is fine, go to the report and hit the "scan" button at the end of the page. Note that this scan can take some
...... time.

Patchs will be listed with :

- File name
- Start line
- End line
- Purpose (reason)

And will be sortable by reason (interesting to be consistant here therefore !) or by source file.
Note that contributed code and non-core code will also be scanned.
Moodle 2.2, 2.3

Version information

Version build number
Version release name
2.2.0 (build 2012062800)
Release candidate
MD5 Sum
Supported software
PHP 5.3, Moodle 2.2, Moodle 2.3
  • This is the latest release for Moodle 2.2
  • This is the latest release for Moodle 2.3

Version control information

Version control system (VCS)
VCS repository URL
VCS branch

Default installation instructions for plugins of the type Reports

  1. Make sure you have all the required versions.
  2. Download and unpack the module.
  3. Place the folder (eg "myreport") in the "report" subdirectory.
  4. Visit to finish the installation