MDL-57751 libraries: Remove <2.6 only check from load_installed_plugins

This commit is contained in:
John Okely 2016-12-22 16:14:11 +08:00
parent 3c45d26f58
commit c0f70d1a7a

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);