Skip to content

Commit

Permalink
v 0.5.8 r2
Browse files Browse the repository at this point in the history
add global var exception in template
  • Loading branch information
Prev committed Sep 21, 2014
1 parent 98fea01 commit 2602439
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/classes/TemplateHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ private function _compileTemplate($html, $module=NULL, $relativePath='/') {
$html = join('$_POST', explode('$__attr->_POST', $html));
$html = join('$_REQUEST', explode('$__attr->_REQUEST', $html));
$html = join('$_SESSION', explode('$__attr->_SESSION', $html));
$html = join('$_ENV', explode('$__attr->_ENV', $html));
$html = join('$_FILES', explode('$__attr->_FILES', $html));

$html = preg_replace('/([a-zA-Z0-9_])::\$__attr->(.*)/', '$1::\$$2', $html);

Expand Down

0 comments on commit 2602439

Please sign in to comment.