1
0
mirror of https://github.com/processwire/processwire.git synced 2025-08-09 00:06:55 +02:00
This commit is contained in:
Ryan Cramer
2016-10-11 11:34:16 -04:00
parent 7aed0416a9
commit 67f504834d

View File

@@ -171,6 +171,9 @@ class Notices extends WireArray {
protected function addLog($item) { protected function addLog($item) {
/** @var Notice $item */ /** @var Notice $item */
$text = $item->text; $text = $item->text;
if($item->flags & Notice::allowMarkup && strpos($text, '&') !== false) {
$text = $this->wire('sanitizer')->unentities($text);
}
if($this->wire('config')->debug && $item->class) $text .= " ($item->class)"; if($this->wire('config')->debug && $item->class) $text .= " ($item->class)";
$this->wire('log')->save($item->getName(), $text); $this->wire('log')->save($item->getName(), $text);
} }