Skip to content

Commit

Permalink
MDL-57316 libraries: Remove <2.6 only check from load_installed_plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
John Okely committed Jan 13, 2017
1 parent 5e1014a commit 3e32a4e
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions lib/classes/plugin_manager.php
Expand Up @@ -186,19 +186,6 @@ protected function load_installed_plugins() {

$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);
Expand Down

0 comments on commit 3e32a4e

Please sign in to comment.