aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarek A. R <aptx@phpbb.com>2008-09-04 11:52:01 +0000
committerMarek A. R <aptx@phpbb.com>2008-09-04 11:52:01 +0000
commit4a225280a0fe1b7c364a007eb43dc93975c544e9 (patch)
treeb99c08c41a63999f419e2195d3913660d56d6ceb
parent88b2e097fc8b9b0e20876ce7afebe83c447f322c (diff)
downloadforums-4a225280a0fe1b7c364a007eb43dc93975c544e9.tar
forums-4a225280a0fe1b7c364a007eb43dc93975c544e9.tar.gz
forums-4a225280a0fe1b7c364a007eb43dc93975c544e9.tar.bz2
forums-4a225280a0fe1b7c364a007eb43dc93975c544e9.tar.xz
forums-4a225280a0fe1b7c364a007eb43dc93975c544e9.zip
Don't compile {} or {$}.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@8813 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r--phpBB/includes/functions_template.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/functions_template.php b/phpBB/includes/functions_template.php
index 3454c47d3e..15efc7ec00 100644
--- a/phpBB/includes/functions_template.php
+++ b/phpBB/includes/functions_template.php
@@ -264,8 +264,8 @@ class template_compile
}
// Handle remaining varrefs
- $text_blocks = preg_replace('#\{([a-z0-9\-_]*)\}#is', "<?php echo (isset(\$this->_rootref['\\1'])) ? \$this->_rootref['\\1'] : ''; ?>", $text_blocks);
- $text_blocks = preg_replace('#\{\$([a-z0-9\-_]*)\}#is', "<?php echo (isset(\$this->_tpldata['DEFINE']['.']['\\1'])) ? \$this->_tpldata['DEFINE']['.']['\\1'] : ''; ?>", $text_blocks);
+ $text_blocks = preg_replace('#\{([a-z0-9\-_]+)\}#is', "<?php echo (isset(\$this->_rootref['\\1'])) ? \$this->_rootref['\\1'] : ''; ?>", $text_blocks);
+ $text_blocks = preg_replace('#\{\$([a-z0-9\-_]+)\}#is', "<?php echo (isset(\$this->_tpldata['DEFINE']['.']['\\1'])) ? \$this->_tpldata['DEFINE']['.']['\\1'] : ''; ?>", $text_blocks);
return;
}