Merge branch 'MDL-57751-master' of https://github.com/xow/moodle

This commit is contained in:
Andrew Nicols 2017-03-14 13:31:43 +08:00 committed by Eloy Lafuente (stronk7)
commit 594ada13c2

View File

@ -186,19 +186,6 @@ 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');
foreach ($modules as $module) {
$this->installedplugins['mod'][$module->name] = $module->version;
}
$blocks = $DB->get_records('block', array(), 'name ASC', 'id, name, version');
foreach ($blocks as $block) {
$this->installedplugins['block'][$block->name] = $block->version;
}
}
$versions = $DB->get_records('config_plugins', array('name'=>'version'));
foreach ($versions as $version) {
$parts = explode('_', $version->plugin, 2);