mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
try to support -- in smileys by not using comments within post text display...
git-svn-id: file:///svn/phpbb/trunk@7784 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
65442c6bdd
commit
a0248584a6
1 changed files with 1 additions and 1 deletions
|
@ -2812,7 +2812,7 @@ function smiley_text($text, $force_option = false)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return str_replace('<img src="{SMILIES_PATH}', '<img src="' . $phpbb_root_path . $config['smilies_path'], $text);
|
return preg_replace('#<!\-\- s(.*?) \-\-><img src="\{SMILIES_PATH\}\/(.*?) \/><!\-\- s\1 \-\->#', '<img src="' . $phpbb_root_path . $config['smilies_path'] . '/\2 />', $text);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue