Skip to content
Permalink
Browse files

Add checking for prefix setting.

  • Loading branch information...
devcorrelator committed May 4, 2018
1 parent a6f352e commit b400a44d5ba6f7a1d050cfcaa7473ab6e40e38c4
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/Routing/RouteBuilder.php
@@ -759,14 +759,14 @@ protected static function parseDefaults($defaults)
];
case 3:
return [
'prefix' => strtolower($matches[2]),
'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : false),
'controller' => $matches[3],
'action' => $matches[4]
];
case 4:
return [
'plugin' => $matches[1],
'prefix' => strtolower($matches[2]),
'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : false),
'controller' => $matches[3],
'action' => $matches[4]
];

0 comments on commit b400a44

Please sign in to comment.
You can’t perform that action at this time.