mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-22 22:33:55 -07:00
Fix previous PR 😄
This commit is contained in:
parent
fc287fd13e
commit
ab14e67a92
1 changed files with 1 additions and 1 deletions
|
@ -808,7 +808,7 @@ if ($mode == 'read') {
|
||||||
|
|
||||||
// Check smilies limit
|
// Check smilies limit
|
||||||
if ($bb_cfg['max_smilies_pm']) {
|
if ($bb_cfg['max_smilies_pm']) {
|
||||||
$count_smilies = substr_count(bbcode2html($message), '<img class="smile" src="' . $bb_cfg['smilies_path']);
|
$count_smilies = substr_count(bbcode2html($privmsg_message), '<img class="smile" src="' . $bb_cfg['smilies_path']);
|
||||||
if ($count_smilies > $bb_cfg['max_smilies_pm']) {
|
if ($count_smilies > $bb_cfg['max_smilies_pm']) {
|
||||||
$error = true;
|
$error = true;
|
||||||
$error_msg .= ((!empty($error_msg)) ? '<br />' : '') . sprintf($lang['MAX_SMILIES_PER_POST'], $bb_cfg['max_smilies_pm']);
|
$error_msg .= ((!empty($error_msg)) ? '<br />' : '') . sprintf($lang['MAX_SMILIES_PER_POST'], $bb_cfg['max_smilies_pm']);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue