mirror of
https://github.com/phpbb/phpbb.git
synced 2025-01-29 20:49:48 +01:00
convert sizes (UNTESTED at the moment!)
git-svn-id: file:///svn/phpbb/trunk@7160 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
ef91c35ba2
commit
3d02c2a804
@ -1156,6 +1156,15 @@ function phpbb_prepare_message($message)
|
||||
$message = preg_replace('/\[quote="(.*?)"\]/s', '[quote="\1"]', $message);
|
||||
}
|
||||
|
||||
// Adjust size...
|
||||
if (strpos($message, '[size=') !== false)
|
||||
{
|
||||
// Doing it with a map.
|
||||
$match_size = array('/\[size=[0-7]\]/', '/\[size=[8-9]\]/', '/\[size=[10-12]\]/', '/\[size=[13-18]\]/', '/\[size=[19-99]\]/');
|
||||
$replace_size = array('[size=50]', '[size=85]', '[size=100]', '[size=150]', '[size=200]');
|
||||
$message = preg_replace($match_size, $replace_size, $message);
|
||||
}
|
||||
|
||||
// Already the new user id ;)
|
||||
$user_id = $convert->row['poster_id'];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user