mirror of
https://github.com/e107inc/e107.git
synced 2025-07-31 03:40:37 +02:00
This adds a space before AND after each emote, so there's no conflict with any text or other emotes before or after them.
This commit is contained in:
@@ -36,6 +36,7 @@ function r_emote()
|
|||||||
$value2 = substr($value, 0, strpos($value, " "));
|
$value2 = substr($value, 0, strpos($value, " "));
|
||||||
$value = ($value2 ? $value2 : $value);
|
$value = ($value2 ? $value2 : $value);
|
||||||
$value = ($value == '&|') ? ':((' : $value;
|
$value = ($value == '&|') ? ':((' : $value;
|
||||||
|
$value = " ".$value." ";
|
||||||
//TODO CSS class
|
//TODO CSS class
|
||||||
$str .= "\n<a href=\"javascript:addtext('$value',true)\"><img src='$key' alt='' /></a> ";
|
$str .= "\n<a href=\"javascript:addtext('$value',true)\"><img src='$key' alt='' /></a> ";
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user