Skip to content

Commit

Permalink
Fixing another bug
Browse files Browse the repository at this point in the history
  • Loading branch information
ShurikAg committed Sep 4, 2015
1 parent a7563f7 commit b8949c2
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 32 deletions.
9 changes: 5 additions & 4 deletions Controller/Widgets/PlainMenuController.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function renderMenuByIdAction($menuId, $title = null)

$menu = $menuMgr->getMenuRepository()->findOneById($menuId);

return $this->doRenderMenu($menu);
return $this->doRenderMenu($menu, $title);
}

/**
Expand All @@ -169,17 +169,18 @@ public function renderMenuAction($menuCode, $title = null)

$menu = $menuMgr->getMenuRepository()->findOneByCode($menuCode);

return $this->doRenderMenu($menu);
return $this->doRenderMenu($menu, $title);
}

/**
* Renders the menu
*
* @param Menu $menu
* @param Menu $menu
* @param string $title
*
* @return Response
*/
protected function doRenderMenu(Menu $menu = null)
protected function doRenderMenu(Menu $menu = null, $title = null)
{
if (!($menu instanceof Menu)) {
return new Response("");
Expand Down
46 changes: 23 additions & 23 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
{
"name": "iibs/arnm-menu",
"description": "Araneum's menu bundle",
"version": "1.0.5",
"authors": [
{
"name": "Alex Agulyansky",
"email": "[email protected]",
"homepage": "http://www.iibspro.com",
"role": "Dev Lead"
}
],
"autoload": {
"psr-0": { "Arnm\\MenuBundle": "" }
},
"target-dir": "Arnm/MenuBundle",
"require": {
"php": ">=5.3.9",
"symfony/symfony": "2.7.*",
"stof/doctrine-extensions-bundle": "dev-master",
"iibs/arnm-core": "1.0.*",
"iibs/arnm-pages": "1.0.*",
"iibs/arnm-widget": "1.0.*"
"name" : "iibs/arnm-menu",
"description" : "Araneum's menu bundle",
"version" : "1.0.6",
"require" : {
"php" : ">=5.3.9",
"symfony/symfony" : "2.7.*",
"stof/doctrine-extensions-bundle" : "dev-master",
"iibs/arnm-core" : "1.0.*",
"iibs/arnm-pages" : "1.0.*",
"iibs/arnm-widget" : "1.0.*"
},
"target-dir" : "Arnm/MenuBundle",
"authors" : [ {
"name" : "Alex Agulyansky",
"email" : "[email protected]",
"homepage" : "http://www.iibspro.com",
"role" : "Dev Lead"
} ],
"autoload" : {
"psr-0" : {
"Arnm\\MenuBundle" : ""
}
}
}
}
10 changes: 5 additions & 5 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8949c2

Please sign in to comment.