mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
Another attempt at fixing smilies code :)
git-svn-id: file:///svn/phpbb/trunk@874 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
02ac5e5943
commit
56ca4e53d7
1 changed files with 1 additions and 1 deletions
|
@ -787,7 +787,7 @@ function smilies_pass($message)
|
|||
|
||||
for($i = 0; $i < count($smilies); $i++)
|
||||
{
|
||||
$orig[] = "'(\W)" . preg_quote($smilies[$i]['code']) . "(\W)'si";
|
||||
$orig[] = "'\B" . preg_quote($smilies[$i]['code']) . "\B'sxi";
|
||||
$repl[] = '\1<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '">\2';
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue