Permalink
Browse files

Bug fix. elsif should have been if in Config/routes.php. Also removed…

… additional route added in error. Loaded routes are now correct.
  • Loading branch information...
1 parent 2b44a92 commit a8e4c9d7e700902e7f7c3ef96063978c5a3b3138 @sam-at-github sam-at-github committed Feb 12, 2014
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/Config/routes.php
View
@@ -60,13 +60,12 @@
Router::connect("/:prefix/:plugin/:controller", $indexParams, $match);
Router::connect("/:prefix/:plugin/:controller/:action/*", [], $match);
}
-else if($pluginPattern) {
+if($pluginPattern) {
Router::connect("/:plugin", $indexParams, $pluginShortMatch);
Router::connect("/:plugin/:controller", $indexParams, $match);
Router::connect("/:plugin/:controller/:action/*", [], $match);
}
-else if($prefixPattern) {
- Router::connect("/:prefix", $indexParams, $match );
+if($prefixPattern) {
Router::connect("/:prefix/:controller", $indexParams, $match);
Router::connect("/:prefix/:controller/:action/*", [], $match);
}

0 comments on commit a8e4c9d

Please sign in to comment.