Commit 594ada13 authored by Andrew Nicols's avatar Andrew Nicols Committed by Eloy Lafuente
Browse files

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

parents ada10e7c c0f70d1a
......@@ -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);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment