diff options
| author | Tristan Darricau <github@nicofuma.fr> | 2014-06-15 21:52:25 +0200 |
|---|---|---|
| committer | Tristan Darricau <github@nicofuma.fr> | 2014-06-16 22:35:44 +0200 |
| commit | a94581e7cae2e7fac6f88b8718866f694e8b01f0 (patch) | |
| tree | d6b9bd0519f65d087e35f4d4c89681086d63ec17 /phpBB/includes | |
| parent | 99a2f2fdb4d3f617f09ca248bf526b7ec97ba7aa (diff) | |
| download | forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.gz forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.bz2 forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.tar.xz forums-a94581e7cae2e7fac6f88b8718866f694e8b01f0.zip | |
[ticket/12721] Add Squiz.ControlStructures.ForLoopDeclaration in legacy
PHPBB3-12721
Diffstat (limited to 'phpBB/includes')
| -rw-r--r-- | phpBB/includes/functions_convert.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/functions_convert.php b/phpBB/includes/functions_convert.php index e8f8151d6f..9005c57c8a 100644 --- a/phpBB/includes/functions_convert.php +++ b/phpBB/includes/functions_convert.php @@ -2297,7 +2297,7 @@ function convert_bbcode($message, $convert_size = true, $extended_bbcodes = fals $message = preg_replace('#\[size=([0-9]+)\](.*?)\[/size\]#i', '[size=\1]\2[/size]', $message); $message = preg_replace('#\[size=[0-9]{2,}\](.*?)\[/size\]#i', '[size=29]\1[/size]', $message); - for ($i = sizeof($size); $i; ) + for ($i = sizeof($size); $i;) { $i--; $message = str_replace('[size=' . $i . ']', '[size=' . $size[$i] . ']', $message); |
