Permalink
Browse files

Clean

  • Loading branch information...
hugokernel committed Nov 7, 2014
1 parent af6ab50 commit 34ce49752c9c9d0ccd20a29162357d99e7c763f5
Showing with 11 additions and 11 deletions.
  1. +11 −11 hyla_tpl.class.php
View
@@ -238,17 +238,17 @@ public function render($block_name = null, $render = true) {
// Run function on var
// First, run set var function (&xxx)
$data = preg_replace_callback(
'/{&([a-zA-Z_\-0-9]*)\:((\\\\}|\\\\|[^}])*)}/',
function($m) { return $this->setVar($m[1], self::_skipQuote(stripslashes($m[2]))); },
$data
);
$data = preg_replace_callback(
'/{([$|!|_|#])(([a-zA-Z_\-0-9]*)\:?((\\\\}|\\\\|[^}])*))}/',
function($m) { return $this->_parseFuncVar($m[2], $m[1]); },
$data
);
$data = preg_replace_callback(
'/{&([a-zA-Z_\-0-9]*)\:((\\\\}|\\\\|[^}])*)}/',
function($m) { return $this->setVar($m[1], self::_skipQuote(stripslashes($m[2]))); },
$data
);
$data = preg_replace_callback(
'/{([$|!|_|#])(([a-zA-Z_\-0-9]*)\:?((\\\\}|\\\\|[^}])*))}/',
function($m) { return $this->_parseFuncVar($m[2], $m[1]); },
$data
);
}
// Get content and add it !

0 comments on commit 34ce497

Please sign in to comment.