Permalink
Browse files

Small cleanup.

  • Loading branch information...
1 parent fca8199 commit 282270109d43b3cdf5dd53092f221bd39fd993d7 @zyxist zyxist committed Oct 9, 2010
Showing with 1 addition and 2 deletions.
  1. +1 −2 lib/Opt/Expression/Standard.php
@@ -447,7 +447,7 @@ public function _compileVariable(array $variable, $type, $weight, $context = 0,
// Check if any section with the specified name exists.
$sectionName = $this->_compiler->convert($item);
- if(($section = $proc->getSection($sectionName)) !== null)
+ if(($section = Opt_Instruction_Section_Abstract::getSection($sectionName)) !== null)
{
$path = $sectionName;
$state['section'] = $section;
@@ -458,7 +458,6 @@ public function _compileVariable(array $variable, $type, $weight, $context = 0,
$hook = 'section:item'.$this->_dfCalls[$context];
if(!$section['format']->property($hook))
{
- var_dump($hook);
throw new Opt_Format_Exception('The operation '.$hook.' is not supported by format '.$section['format']->getName());
}
$section['format']->assign('value', $contextInfo[0]);

0 comments on commit 2822701

Please sign in to comment.