Skip to content

Commit

Permalink
Add support for camelcase module name in AdminSidebar. Fixes AsgardCm…
Browse files Browse the repository at this point in the history
…s/Platform/issues#182
  • Loading branch information
armababy committed Mar 3, 2016
1 parent 56a3ba8 commit 5dc6afc
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 5dc6afc

Please sign in to comment.