mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Fixed little bug that made the smilies image tags not XHTML compatible
git-svn-id: file:///svn/phpbb/trunk@2318 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
16763da87f
commit
3e2eed6602
1 changed files with 1 additions and 1 deletions
|
@ -742,7 +742,7 @@ function smilies_pass($message)
|
||||||
for($i = 0; $i < count($smilies); $i++)
|
for($i = 0; $i < count($smilies); $i++)
|
||||||
{
|
{
|
||||||
$orig[] = "/(?<=.\\W|\\W.|^\\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\\W|\\W.|\\W$)/";
|
$orig[] = "/(?<=.\\W|\\W.|^\\W)" . phpbb_preg_quote($smilies[$i]['code'], "/") . "(?=.\\W|\\W.|\\W$)/";
|
||||||
$repl[] = '<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '" border="0">';
|
$repl[] = '<img src="'. $board_config['smilies_path'] . '/' . $smilies[$i]['smile_url'] . '" alt="' . $smilies[$i]['smile_url'] . '" border="0" />';
|
||||||
}
|
}
|
||||||
|
|
||||||
if( $i > 0 )
|
if( $i > 0 )
|
||||||
|
|
Loading…
Add table
Reference in a new issue