Skip to content

Commit

Permalink
MDL-50102 versions: coding style cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
stronk7 committed May 5, 2015
1 parent 84d6094 commit 15005d9
Show file tree
Hide file tree
Showing 15 changed files with 27 additions and 19 deletions.
10 changes: 9 additions & 1 deletion backup/backup.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,16 @@ abstract class backup implements checksumable {
const OPERATION_BACKUP ='backup'; // We are performing one backup
const OPERATION_RESTORE ='restore';// We are performing one restore

// Version (to keep CFG->backup_version (and release) updated automatically)
// Version and release (to keep CFG->backup_version (and release) updated automatically).
/**
* Usually same than major release version, this is used to mark important
* point is backup when some behavior/approach channged, in order to allow
* conditional coding based on it.
*/
const VERSION = 2015051100;
/**
* Usually same than major release zero version, mainly for informative/historic purposes.
*/
const RELEASE = '2.9';
}

Expand Down
2 changes: 1 addition & 1 deletion enrol/imsenterprise/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'enrol_imsenterprise';
2 changes: 1 addition & 1 deletion filter/data/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component= 'filter_data';

$plugin->dependencies = array('mod_data' => 2015050500);
2 changes: 1 addition & 1 deletion filter/glossary/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component= 'filter_glossary';

$plugin->dependencies = array('mod_glossary' => 2015050500);
2 changes: 1 addition & 1 deletion filter/mathjaxloader/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component= 'filter_mathjaxloader';
2 changes: 1 addition & 1 deletion mod/book/tool/exportimscp/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

$plugin->component = 'booktool_exportimscp'; // Full name of the plugin (used for diagnostics)
$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
2 changes: 1 addition & 1 deletion mod/book/tool/importhtml/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

$plugin->component = 'booktool_importhtml'; // Full name of the plugin (used for diagnostics)
$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
2 changes: 1 addition & 1 deletion mod/book/tool/print/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@

$plugin->component = 'booktool_print'; // Full name of the plugin (used for diagnostics)
$plugin->version = 2015051100; // The current plugin version (Date: YYYYMMDDXX)
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
4 changes: 2 additions & 2 deletions mod/workshop/allocation/manual/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->component = 'workshopallocation_manual';
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopallocation_manual';
2 changes: 1 addition & 1 deletion mod/workshop/eval/best/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopeval_best';
2 changes: 1 addition & 1 deletion mod/workshop/form/accumulative/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopform_accumulative';
2 changes: 1 addition & 1 deletion mod/workshop/form/comments/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopform_comments';
2 changes: 1 addition & 1 deletion mod/workshop/form/numerrors/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopform_numerrors';
2 changes: 1 addition & 1 deletion mod/workshop/form/rubric/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100;
$plugin->requires = 2015050500; // Requires this Moodle version
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'workshopform_rubric';
8 changes: 4 additions & 4 deletions mod/workshop/version.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

defined('MOODLE_INTERNAL') || die();

$plugin->version = 2015051100; // the current module version (YYYYMMDDXX)
$plugin->requires = 2015050500; // requires this Moodle version
$plugin->component = 'mod_workshop'; // full name of the plugin (used for diagnostics)
$plugin->cron = 60; // give as a chance every minute
$plugin->version = 2015051100; // The current module version (YYYYMMDDXX)
$plugin->requires = 2015050500; // Requires this Moodle version.
$plugin->component = 'mod_workshop';
$plugin->cron = 60; // Give as a chance every minute.

0 comments on commit 15005d9

Please sign in to comment.