mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-02 23:07:39 +02:00
use correct bbcode uid...
git-svn-id: file:///svn/phpbb/trunk@7173 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -41,7 +41,6 @@ while ($row = $db->sql_fetchrow($result))
|
|||||||
// Only if a bbcode uid is present, the signature present and a size tag used...
|
// Only if a bbcode uid is present, the signature present and a size tag used...
|
||||||
if ($bbcode_uid && $row['user_sig'] && strpos($row['user_sig'], '[size=') !== false)
|
if ($bbcode_uid && $row['user_sig'] && strpos($row['user_sig'], '[size=') !== false)
|
||||||
{
|
{
|
||||||
|
|
||||||
$row['user_sig'] = preg_replace_callback('/\[size=(\d*):' . $bbcode_uid . '\]/', 'replace_size', $row['user_sig']);
|
$row['user_sig'] = preg_replace_callback('/\[size=(\d*):' . $bbcode_uid . '\]/', 'replace_size', $row['user_sig']);
|
||||||
|
|
||||||
$sql = 'UPDATE ' . USERS_TABLE . " SET user_sig = '" . $db->sql_escape($row['user_sig']) . "'
|
$sql = 'UPDATE ' . USERS_TABLE . " SET user_sig = '" . $db->sql_escape($row['user_sig']) . "'
|
||||||
|
@@ -1156,7 +1156,7 @@ function phpbb_prepare_message($message)
|
|||||||
// Adjust size...
|
// Adjust size...
|
||||||
if (strpos($message, '[size=') !== false)
|
if (strpos($message, '[size=') !== false)
|
||||||
{
|
{
|
||||||
$message = preg_replace_callback('/\[size=(\d*):' . $bbcode_uid . '\]/', 'replace_size', $message);
|
$message = preg_replace_callback('/\[size=(\d*):' . $convert->row['old_bbcode_uid'] . '\]/', 'replace_size', $message);
|
||||||
}
|
}
|
||||||
|
|
||||||
$message = preg_replace('/\:(([a-z0-9]:)?)' . $convert->row['old_bbcode_uid'] . '/s', '', $message);
|
$message = preg_replace('/\:(([a-z0-9]:)?)' . $convert->row['old_bbcode_uid'] . '/s', '', $message);
|
||||||
|
Reference in New Issue
Block a user