From d5b6b9cf852c16ed627fe38a6b34e39bfca73a18 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 28 May 2006 15:42:06 +0000 Subject: - get every bbcode tpl block defined within bbcode.html. ;) (#1889) git-svn-id: file:///svn/phpbb/trunk@5977 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/bbcode.php | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'phpBB/includes/bbcode.php') 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('#(.*?)#', $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]); } } -- cgit v1.2.1