mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 16:32:18 +02:00
MDL-57751 libraries: Remove <2.6 only check from load_installed_plugins
This commit is contained in:
parent
3c45d26f58
commit
c0f70d1a7a
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user