Skip to content

Commit

Permalink
Merge pull request #30 from Stricted/master
Browse files Browse the repository at this point in the history
fix constant handling
  • Loading branch information
uwetews committed May 12, 2015
2 parents 2ff51de + 4af23bc commit 962cf3d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public function compile($args, $compiler, $parameter)
$compiler->trigger_template_error("(secure mode) constants not permitted");
break;
}
if (strpos($_index[1], '$') === false) {
if (strpos($_index[1], '$') === false && strpos($_index[1], '\'') === false ) {
return "@constant('{$_index[1]}')";
} else {
return "@constant({$_index[1]})";
Expand Down

0 comments on commit 962cf3d

Please sign in to comment.