MDL-38019 added add_to_config_log() to lib/datalib.php

This commit is contained in:
Andrew Davis
2013-05-13 08:57:41 +08:00
parent 34a6bd45a4
commit b8b50d04fe
3 changed files with 34 additions and 27 deletions
+1 -9
View File
@@ -1627,15 +1627,7 @@ abstract class admin_setting {
rebuild_course_cache(0, true);
}
// log change
$log = new stdClass();
$log->userid = during_initial_install() ? 0 :$USER->id; // 0 as user id during install
$log->timemodified = time();
$log->plugin = $this->plugin;
$log->name = $name;
$log->value = $value;
$log->oldvalue = $oldvalue;
$DB->insert_record('config_log', $log);
add_to_config_log($name, $oldvalue, $value, $this->plugin);
return true; // BC only
}