MDL-27783 enabled status of a built-in service should never been updated on upgrade. It is only used during the installation. If a dev really needs to change the status, he can do it in lib/db/upgrade.php

This commit is contained in:
Jerome Mouneyrac
2011-06-09 16:50:14 +08:00
parent 6911fa130b
commit 02ae44cf4e
-4
View File
@@ -907,10 +907,6 @@ function external_update_descriptions($component) {
$service['shortname'] = !isset($service['shortname']) ? null : $service['shortname'];
$update = false;
if ($dbservice->enabled != $service['enabled']) {
$dbservice->enabled = $service['enabled'];
$update = true;
}
if ($dbservice->requiredcapability != $service['requiredcapability']) {
$dbservice->requiredcapability = $service['requiredcapability'];
$update = true;