Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit a8e4c9d7e700902e7f7c3ef96063978c5a3b3138 1 parent 2b44a92
sam-at-github sam-at-github authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 src/Config/routes.php
5 src/Config/routes.php
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.