Skip to content

Commit

Permalink
Merge branch 'armababy-feature/support-camelcase-for-sidebar'
Browse files Browse the repository at this point in the history
* armababy-feature/support-camelcase-for-sidebar:
  Add support for camelcase module name in AdminSidebar. Fixes AsgardCms/Platform/issues#182
  • Loading branch information
nWidart committed May 6, 2016
2 parents cc03ca2 + 8682124 commit 12ca88f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sidebar/AdminSidebar.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function __construct(Menu $menu, RepositoryInterface $modules, Container
public function build()
{
foreach ($this->modules->enabled() as $module) {
$name = studly_case($module->getName());
$name = studly_case($module->get('name'));
$class = 'Modules\\' . $name . '\\Sidebar\\SidebarExtender';

if (class_exists($class)) {
Expand Down

0 comments on commit 12ca88f

Please sign in to comment.