1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 12:41:51 +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:
BillyBoy0823 2013-05-16 03:35:01 -04:00
parent e9173717a7
commit 52b2f7596d

View File

@ -36,6 +36,7 @@ function r_emote()
$value2 = substr($value, 0, strpos($value, " "));
$value = ($value2 ? $value2 : $value);
$value = ($value == '&|') ? ':((' : $value;
$value = " ".$value." ";
//TODO CSS class
$str .= "\n<a href=\"javascript:addtext('$value',true)\"><img src='$key' alt='' /></a> ";
}