mirror of
https://github.com/phpbb/phpbb.git
synced 2025-05-12 02:25:18 +02:00
- get every bbcode tpl block defined within bbcode.html. ;) (#1889)
git-svn-id: file:///svn/phpbb/trunk@5977 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
1526ae1fc8
commit
d5b6b9cf85
@ -369,8 +369,13 @@ class bbcode
|
|||||||
|
|
||||||
$matches = preg_match_all('#<!-- BEGIN (.*?) -->(.*?)<!-- END (?:.*?) -->#', $tpl, $match);
|
$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]);
|
$this->bbcode_template[$match[1][$i]] = $this->bbcode_tpl_replace($match[1][$i], $match[2][$i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -76,7 +76,7 @@ class session
|
|||||||
// We are on the base level (phpBB root == webroot), lets adjust the variables a bit...
|
// We are on the base level (phpBB root == webroot), lets adjust the variables a bit...
|
||||||
if (!$root_script_path)
|
if (!$root_script_path)
|
||||||
{
|
{
|
||||||
$root_script_path = ($page_dir) ? str_replace($page_dir, '', $script_path) : $script_path;;
|
$root_script_path = ($page_dir) ? str_replace($page_dir, '', $script_path) : $script_path;
|
||||||
}
|
}
|
||||||
|
|
||||||
$page_array += array(
|
$page_array += array(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user