Merge branch 'MDL-43040'
This commit is contained in:
@@ -162,6 +162,7 @@ class core_plugin_manager {
|
||||
|
||||
$this->installedplugins = array();
|
||||
|
||||
// TODO: Delete this block once Moodle 2.6 or later becomes minimum required version to upgrade.
|
||||
if ($CFG->version < 2013092001.02) {
|
||||
// We did not upgrade the database yet.
|
||||
$modules = $DB->get_records('modules', array(), 'name ASC', 'id, name, version');
|
||||
|
||||
@@ -6,6 +6,7 @@ information provided here is intended especially for developers.
|
||||
* $core_renderer->block_move_target() changed to support more verbose move-block-here descriptions.
|
||||
|
||||
DEPRECATIONS:
|
||||
* $module uses in mod/xxx/version.php files is now deprecated. Please use $plugin instead. It will be removed in Moodle 2.10.
|
||||
* Update init methods in all event classes - "level" property was renamed to "edulevel", the level property is now deprecated.
|
||||
* Abstract class \core\event\course_module_instances_list_viewed is deprecated now, use \core\event\instances_list_viewed instead.
|
||||
* mod_book\event\instances_list_viewed has been deprecated. Please use mod_book\event\course_module_instance_list_viewed instead.
|
||||
|
||||
+2
-1
@@ -565,10 +565,11 @@ function upgrade_plugins_modules($startcallback, $endcallback, $verbose) {
|
||||
throw new plugin_defective_exception($component, 'Missing version.php');
|
||||
}
|
||||
|
||||
// TODO: Support for $module will end with Moodle 2.10 by MDL-43896. Was deprecated for Moodle 2.7 by MDL-43040.
|
||||
$plugin = new stdClass();
|
||||
$plugin->version = null;
|
||||
$module = $plugin;
|
||||
require($fullmod .'/version.php'); // Defines $module/$plugin with version etc.
|
||||
require($fullmod .'/version.php'); // Defines $plugin with version etc.
|
||||
$plugin = clone($module);
|
||||
unset($module->version);
|
||||
unset($module->component);
|
||||
|
||||
@@ -24,9 +24,9 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->component = 'mod_assign'; // Full name of the plugin (used for diagnostics).
|
||||
$module->version = 2014011500; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->requires = 2013110500; // Requires this Moodle version.
|
||||
$module->cron = 60;
|
||||
$plugin->component = 'mod_assign'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->version = 2014011500; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version.
|
||||
$plugin->cron = 60;
|
||||
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013121900; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
$plugin->version = 2013121900; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_assignment'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 60;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$module->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->cron = 0; // Period for cron to check this module (secs)
|
||||
$plugin->component = 'mod_book'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->cron = 0; // Period for cron to check this module (secs)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_chat'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 300;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_chat'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 300;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_choice'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_data'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,9 +25,9 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_feedback'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
$feedback_version_intern = 1; //this version is used for restore older backups
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_folder'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_forum'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 60;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_glossary'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_imscp'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_label'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_label'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_lesson'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
+4
-4
@@ -49,7 +49,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die;
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_lti'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_lti'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_page'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2014011306; // The current module version (Date: YYYYMMDDXX).
|
||||
$module->requires = 2013110500; // Requires this Moodle version.
|
||||
$module->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
|
||||
$module->cron = 60;
|
||||
$plugin->version = 2014011306; // The current module version (Date: YYYYMMDDXX).
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version.
|
||||
$plugin->component = 'mod_quiz'; // Full name of the plugin (used for diagnostics).
|
||||
$plugin->cron = 60;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_resource'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110501; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 300;
|
||||
$plugin->version = 2013110501; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_scorm'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 300;
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_survey'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_survey'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
+4
-4
@@ -25,7 +25,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_url'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -33,7 +33,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // Requires this Moodle version
|
||||
$module->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
|
||||
$module->cron = 0;
|
||||
$plugin->version = 2013110500; // The current module version (Date: YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // Requires this Moodle version
|
||||
$plugin->component = 'mod_wiki'; // Full name of the plugin (used for diagnostics)
|
||||
$plugin->cron = 0;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
|
||||
defined('MOODLE_INTERNAL') || die();
|
||||
|
||||
$module->version = 2013110500; // the current module version (YYYYMMDDXX)
|
||||
$module->requires = 2013110500; // requires this Moodle version
|
||||
$module->component = 'mod_workshop'; // full name of the plugin (used for diagnostics)
|
||||
$module->cron = 60; // give as a chance every minute
|
||||
$plugin->version = 2013110500; // the current module version (YYYYMMDDXX)
|
||||
$plugin->requires = 2013110500; // 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
|
||||
|
||||
Reference in New Issue
Block a user