aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/install/convertors
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2007-03-10 11:17:02 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2007-03-10 11:17:02 +0000
commit3d02c2a8044199f62c06dbae827dd4447ce739c3 (patch)
tree56e633f1737077bfd419313b040735950f8096ba /phpBB/install/convertors
parentef91c35ba262619529a5850c4b5026451e86c2d7 (diff)
downloadforums-3d02c2a8044199f62c06dbae827dd4447ce739c3.tar
forums-3d02c2a8044199f62c06dbae827dd4447ce739c3.tar.gz
forums-3d02c2a8044199f62c06dbae827dd4447ce739c3.tar.bz2
forums-3d02c2a8044199f62c06dbae827dd4447ce739c3.tar.xz
forums-3d02c2a8044199f62c06dbae827dd4447ce739c3.zip
convert sizes (UNTESTED at the moment!)
git-svn-id: file:///svn/phpbb/trunk@7160 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/install/convertors')
-rw-r--r--phpBB/install/convertors/functions_phpbb20.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/phpBB/install/convertors/functions_phpbb20.php b/phpBB/install/convertors/functions_phpbb20.php
index c1bb476b60..25887b2f8e 100644
--- a/phpBB/install/convertors/functions_phpbb20.php
+++ b/phpBB/install/convertors/functions_phpbb20.php
@@ -1156,6 +1156,15 @@ function phpbb_prepare_message($message)
$message = preg_replace('/\[quote="(.*?)"\]/s', '[quote=&quot;\1&quot;]', $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'];