mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
character class... character class... character class...
git-svn-id: file:///svn/phpbb/trunk@5947 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
08a223c4d6
commit
badcfdd1ed
1 changed files with 2 additions and 2 deletions
|
@ -104,8 +104,8 @@ class template_compile
|
||||||
$includephp_blocks = $matches[1];
|
$includephp_blocks = $matches[1];
|
||||||
$code = preg_replace('#<!-- INCLUDEPHP ([a-zA-Z0-9\_\-\+\./]+?) -->#', '<!-- INCLUDEPHP -->', $code);
|
$code = preg_replace('#<!-- INCLUDEPHP ([a-zA-Z0-9\_\-\+\./]+?) -->#', '<!-- INCLUDEPHP -->', $code);
|
||||||
|
|
||||||
preg_match_all('#<!-- ([^<!--].*?) (.*?)?[ ]?-->#', $code, $blocks);
|
preg_match_all('#<!-- ([^<].*?) (.*?)?[ ]?-->#', $code, $blocks);
|
||||||
$text_blocks = preg_split('#<!-- ([^<!--].*?) (.*?)?[ ]?-->#', $code);
|
$text_blocks = preg_split('#<!-- ([^<].*?) (.*?)?[ ]?-->#', $code);
|
||||||
|
|
||||||
for ($i = 0, $j = sizeof($text_blocks); $i < $j; $i++)
|
for ($i = 0, $j = sizeof($text_blocks); $i < $j; $i++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue