Navigation Menu

Skip to content
This repository has been archived by the owner on May 8, 2021. It is now read-only.

Commit

Permalink
Small cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
zyxist committed Oct 9, 2010
1 parent fca8199 commit 2822701
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/Opt/Expression/Standard.php
Expand Up @@ -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;
Expand All @@ -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]);
Expand Down

0 comments on commit 2822701

Please sign in to comment.