mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-17966 reverting previous commit, solution proposed in tracker
This commit is contained in:
parent
f62f7d8f8e
commit
cb5f2411d7
1 changed files with 1 additions and 5 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue