Permalink
Browse files

MDL-55510 upgrade: remove repository_alfresco config

This was missing from MDL-49533 and caused a complaint about alfresco
on every upgrade.
  • Loading branch information...
danpoltawski committed Oct 12, 2016
1 parent 6a69cda commit 0a51a2092893c94ad6df75910277a037ee04df4c
Showing with 14 additions and 1 deletion.
  1. +13 −0 lib/db/upgrade.php
  2. +1 −1 version.php
View
@@ -2272,5 +2272,18 @@ function xmldb_main_upgrade($oldversion) {
upgrade_main_savepoint(true, 2016101101.00);
}
if ($oldversion < 2016101401.00) {
// Clean up repository_alfresco config unless plugin has been manually installed.
if (!file_exists($CFG->dirroot . '/repository/alfresco/lib.php')) {
// Remove capabilities.
capabilities_cleanup('repository_alfresco');
// Clean config.
unset_all_config_for_plugin('repository_alfresco');
}
// Savepoint reached.
upgrade_main_savepoint(true, 2016101401.00);
}
return true;
}
View
@@ -29,7 +29,7 @@
defined('MOODLE_INTERNAL') || die();
$version = 2016101400.00; // YYYYMMDD = weekly release date of this DEV branch.
$version = 2016101401.00; // YYYYMMDD = weekly release date of this DEV branch.
// RR = release increments - 00 in DEV branches.
// .XX = incremental changes.

0 comments on commit 0a51a20

Please sign in to comment.