Skip to content
Snippets Groups Projects
Commit b6bb28ee authored by Sascha Grossenbacher's avatar Sascha Grossenbacher
Browse files

Issue #3222203 by baikho, jonhai, berdir: LogEntry causes erroneous records in...

Issue #3222203 by baikho, jonhai, berdir: LogEntry causes erroneous records in "locales_source" table
parent 1865a691
Branches
Tags
1 merge request!60Applied patch 12
Pipeline #348533 passed with warnings
......@@ -111,8 +111,8 @@ class LogEntry {
*/
public function log($message, $variables = array(), $level = RfcLogLevel::NOTICE) {
if ($variables !== NULL && gettype($message) === 'string') {
$message = t($message, $variables);
if (!empty($variables) && gettype($message) === 'string') {
$message = new FormattableMarkup($message, $variables);
}
if (!empty($this->message)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment