Skip to content

Commit 6d96d67

Browse files
committed
Update HtmlEmoji.php
1 parent 3d18211 commit 6d96d67

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Ajax/semantic/html/elements/HtmlEmoji.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ public function getEmoji() {
3131
* @return HtmlEmoji
3232
*/
3333
public function setEmoji($emoji) {
34+
$emoji=":{$emoji}:";
3435
if (isset($this->_emoji)) {
35-
$this->removePropertyValue("data-emoji", ":{$this->_emoji}:");
36+
$this->removePropertyValue("data-emoji", $this->_emoji);
3637
}
3738
$this->_emoji=$emoji;
38-
$this->addToProperty("data-emoji", ":{$emoji}:");
39+
$this->addToProperty("data-emoji", $emoji);
3940
return $this;
4041
}
4142

0 commit comments

Comments
 (0)