MDL-17966 reverting previous commit, solution proposed in tracker

This commit is contained in:
skodak 2009-03-24 11:01:45 +00:00
parent f62f7d8f8e
commit cb5f2411d7

View file

@ -4269,11 +4269,7 @@ function admin_write_settings($formdata) {
$adminroot->errors[$fullname]->id = $setting->get_id();
$adminroot->errors[$fullname]->error = $error;
}
// $SITE didn't update synchronously, and we shouldn't
// update in this loop (expensive to do this). $SITE will
// be updated at the end of this function, see MDL-17966
// if ($original !== serialize($setting->get_setting())) {
if ($original !== serialize($data[$fullname])) {
if ($original !== serialize($setting->get_setting())) {
$count++;
$callbackfunction = $setting->updatedcallback;
if (function_exists($callbackfunction)) {