Permalink
Browse files

Fixing a bug with proper parsing snippet arguments.

  • Loading branch information...
1 parent 05af1ea commit bf005df8b696f1733b3494165b7c70285da48872 @zyxist zyxist committed Dec 17, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 lib/Opt/Instruction/Snippet.php
@@ -389,7 +389,8 @@ public function useSnippet(Opt_Xml_Node $node, $snippetName, array $arguments, $
{
// We must parse an OPT expression in order to get to know what we have
// here...
- $expression = $this->_compiler->parseExpression($arguments[$name], null, Opt_Compiler_Class::ESCAPE_OFF);
+ $detectedExpression = $this->_compiler->detectExpressionEngine($arguments[$name], 'parse');
+ $expression = $this->_compiler->parseExpression($detectedExpression[1], $detectedExpression[0], Opt_Compiler_Class::ESCAPE_OFF);
if($expression['type'] == Opt_Expression_Interface::SINGLE_VAR)
{
$this->_compiler->setConversion('##rawvar_'.$name, $expression['bare']);

0 comments on commit bf005df

Please sign in to comment.