Permalink
Browse files

Removing the two last arguments of Opt_Instruction_Section_Abstract::…

…_sortSectionContents() call.
  • Loading branch information...
zyxist committed Oct 13, 2010
1 parent f313056 commit 8b91ad146a06ab23ff56f26bda37a09d2f45333d
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/Opt/Instruction/Section.php
@@ -141,7 +141,7 @@ protected function _processBody(Opt_Xml_Element $node)
}
$node->addAfter(Opt_Xml_Buffer::TAG_BEFORE, $code);
$this->processSeparator('$__sect_'.$section['name'], $section['separator'], $node);
- $this->_sortSectionContents($node, 'opt', 'sectionelse');
+ $this->_sortSectionContents($node);
$node->set('postprocess', true);
$this->_process($node);
@@ -154,7 +154,6 @@ protected function _processBody(Opt_Xml_Element $node)
*/
protected function _postprocessSection(Opt_Xml_Element $node)
{
-
$section = self::getSection($node->get('priv:section'));
if(!$node->get('priv:alternative'))
{
@@ -182,6 +181,7 @@ protected function _postprocessBody(Opt_Xml_Element $node)
*/
protected function _processShowelse(Opt_Xml_Element $node, Opt_Xml_Element $parent)
{
+ // TODO: I think this is unnecessary.
$parent->set('priv:alternative', true);
$node->addBefore(Opt_Xml_Buffer::TAG_BEFORE, ' } else { ');
$this->_process($node);

0 comments on commit 8b91ad1

Please sign in to comment.