mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 06:13:58 -07:00
Fixed broken smilies replacing (#832)
This commit is contained in:
parent
d1d9b3f14c
commit
ddf13d9bf2
1 changed files with 2 additions and 2 deletions
|
@ -349,8 +349,8 @@ class BBCode
|
||||||
|
|
||||||
if ($this->smilies) {
|
if ($this->smilies) {
|
||||||
/** @noinspection NestedPositiveIfStatementsInspection */
|
/** @noinspection NestedPositiveIfStatementsInspection */
|
||||||
if ($parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text, 101, $smilies_cnt)) {
|
if ($parsed_text = preg_replace($this->smilies['orig'], $this->smilies['repl'], $text)) {
|
||||||
return (($smilies_cnt <= $bb_cfg['max_smilies']) && $bb_cfg['max_smilies'] > 0) ? $parsed_text : $text;
|
return $parsed_text;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue