mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Merge branch 'MDL-36126_master' of https://github.com/markn86/moodle
This commit is contained in:
commit
ba59a28305
4 changed files with 16 additions and 4 deletions
|
@ -59,7 +59,7 @@ class database_logger extends base_logger {
|
|||
if ($this->levelcol) {
|
||||
$columns[$this->levelcol] = $level;
|
||||
}
|
||||
$columns[$this->messagecol] = $message; //TODO: should this be cleaned?
|
||||
$columns[$this->messagecol] = clean_param($message, PARAM_NOTAGS);
|
||||
return $this->insert_log_record($this->logtable, $columns);
|
||||
}
|
||||
|
||||
|
@ -69,6 +69,6 @@ class database_logger extends base_logger {
|
|||
// to preserve DB logs if the whole backup/restore transaction is
|
||||
// rollback
|
||||
global $DB;
|
||||
return $DB->insert_record($this->logtable, $columns, false); // Don't return inserted id
|
||||
return $DB->insert_record($table, $columns, false); // Don't return inserted id
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue