Skip to content

Commit

Permalink
Fixing show children
Browse files Browse the repository at this point in the history
  • Loading branch information
jwage committed Feb 22, 2010
1 parent 71a8717 commit bb8af4c
Showing 1 changed file with 6 additions and 2 deletions.
Expand Up @@ -89,7 +89,7 @@ public function refresh()
$this->initialize();
}

public static function getMenu($name, $showChildren = true, $class = null)
public static function getMenu($name, $showChildren = null, $class = null)
{
return self::getInstance()->_getMenu($name, $showChildren, $class);
}
Expand All @@ -99,8 +99,12 @@ protected function _getCache()
return sfSympalConfig::get('menu_cache', 'enabled', true) ? sfSympalConfiguration::getActive()->getCache() : false;
}

protected function _getMenu($name, $showChildren = true, $class = null)
protected function _getMenu($name, $showChildren = null, $class = null)
{
if ($showChildren === null)
{
$showChildren = true;
}
if (is_scalar($name) && isset($this->_rootSlugs[$name]))
{
$name = $this->_rootSlugs[$name];
Expand Down

0 comments on commit bb8af4c

Please sign in to comment.