aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/bbcode.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-05-28 15:42:06 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-05-28 15:42:06 +0000
commitd5b6b9cf852c16ed627fe38a6b34e39bfca73a18 (patch)
tree86bdfc4c87518110790f5fa1d8a79e55dd3297aa /phpBB/includes/bbcode.php
parent1526ae1fc8c3b750df511fd286fc7d3166e6e9b3 (diff)
downloadforums-d5b6b9cf852c16ed627fe38a6b34e39bfca73a18.tar
forums-d5b6b9cf852c16ed627fe38a6b34e39bfca73a18.tar.gz
forums-d5b6b9cf852c16ed627fe38a6b34e39bfca73a18.tar.bz2
forums-d5b6b9cf852c16ed627fe38a6b34e39bfca73a18.tar.xz
forums-d5b6b9cf852c16ed627fe38a6b34e39bfca73a18.zip
- get every bbcode tpl block defined within bbcode.html. ;) (#1889)
git-svn-id: file:///svn/phpbb/trunk@5977 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/bbcode.php')
-rw-r--r--phpBB/includes/bbcode.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/phpBB/includes/bbcode.php b/phpBB/includes/bbcode.php
index 98bdb3bfcc..9ac850fb6e 100644
--- a/phpBB/includes/bbcode.php
+++ b/phpBB/includes/bbcode.php
@@ -369,8 +369,13 @@ class bbcode
$matches = preg_match_all('#<!-- BEGIN (.*?) -->(.*?)<!-- END (?:.*?) -->#', $tpl, $match);
- for ($i = 0; $i < $matches - 1; $i++)
+ for ($i = 0; $i < $matches; $i++)
{
+ if (empty($match[1][$i]))
+ {
+ continue;
+ }
+
$this->bbcode_template[$match[1][$i]] = $this->bbcode_tpl_replace($match[1][$i], $match[2][$i]);
}
}