Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Steur <thomas.steur@gmail.com>2013-11-12 04:08:05 +0400
committerThomas Steur <thomas.steur@gmail.com>2013-11-12 04:08:05 +0400
commit43a8566256a3209d0f2cab6b608c365d7c80c21f (patch)
treed5a8eafeaeff0f40b240474d37bd3f663c2c554b /core/Notification.php
parent6abcb0db75324ff39f6557a1bcfcf90bc1a03d69 (diff)
refs #4256 disabling escaping is much better this way
Diffstat (limited to 'core/Notification.php')
-rw-r--r--core/Notification.php9
1 files changed, 5 insertions, 4 deletions
diff --git a/core/Notification.php b/core/Notification.php
index a3e9ac51e1..32a8f62950 100644
--- a/core/Notification.php
+++ b/core/Notification.php
@@ -108,22 +108,23 @@ class Notification
*/
public $priority;
+ /**
+ * Set to true in case you want the raw message output. Make sure to escape the text in this case by yourself.
+ * @var bool
+ */
public $raw = false;
/**
* @param string $message The notification message.
- * @param boolean $raw Set to true in case you want the raw message output. Make sure to escape the text in
- * this case by yourself.
* @throws \Exception In case the message is empty.
*/
- public function __construct($message, $raw = false)
+ public function __construct($message)
{
if (empty($message)) {
throw new \Exception('No notification message given');
}
$this->message = $message;
- $this->raw = $raw;
}
public function hasNoClear()