mirror of
https://github.com/torrentpier/torrentpier-lts.git
synced 2025-02-28 15:10:54 +03:00
Revert "Maked max smilies in PM configurable (#189)"
This reverts commit d4b35fed1c
.
This commit is contained in:
parent
1990fba906
commit
f1fa608a14
15
privmsg.php
15
privmsg.php
@ -927,17 +927,6 @@ else if ( $submit || $refresh || $mode != '' )
|
|||||||
$error = TRUE;
|
$error = TRUE;
|
||||||
$error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['EMPTY_MESSAGE'];
|
$error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . $lang['EMPTY_MESSAGE'];
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check smilies limit
|
|
||||||
if ($bb_cfg['max_smilies_pm'])
|
|
||||||
{
|
|
||||||
$count_smilies = substr_count(bbcode2html($privmsg_message), '<img class="smile" src="'. $bb_cfg['smilies_path']);
|
|
||||||
if ($count_smilies > $bb_cfg['max_smilies_pm'])
|
|
||||||
{
|
|
||||||
$error = TRUE;
|
|
||||||
$error_msg .= ( ( !empty($error_msg) ) ? '<br />' : '' ) . sprintf($lang['MAX_SMILIES_PER_POST'], $bb_cfg['max_smilies_pm']);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $submit && !$error )
|
if ( $submit && !$error )
|
||||||
@ -1216,7 +1205,7 @@ else if ( $submit || $refresh || $mode != '' )
|
|||||||
//
|
//
|
||||||
if (bf($userdata['user_opt'], 'user_opt', 'dis_pm') && $mode != 'edit')
|
if (bf($userdata['user_opt'], 'user_opt', 'dis_pm') && $mode != 'edit')
|
||||||
{
|
{
|
||||||
bb_die($lang['CANNOT_SEND_PRIVMSG']);
|
$message = ($lang['CANNOT_SEND_PRIVMSG']);
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
@ -1673,4 +1662,4 @@ function pm_die ($msg)
|
|||||||
$msg .= sprintf($lang['CLICK_RETURN_INDEX'], '<a href="'."index.php".'">', '</a>');
|
$msg .= sprintf($lang['CLICK_RETURN_INDEX'], '<a href="'."index.php".'">', '</a>');
|
||||||
|
|
||||||
bb_die($msg);
|
bb_die($msg);
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user