Skip to content

Commit

Permalink
Fix: Routing::loadRoutes() in windows do not validate correctly $rout…
Browse files Browse the repository at this point in the history
…esFiles
  • Loading branch information
pjsde committed Sep 11, 2023
1 parent 6c4f668 commit 4ad451b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,7 @@ public function __construct(FileLocator $locator, Modules $moduleConfig, Routing
*
* @return $this
*/
public function loadRoutes(string $routesFile = APPPATH . 'Config/Routes.php')
public function loadRoutes(string $routesFile = APPPATH . 'Config' . DIRECTORY_SEPARATOR . 'Routes.php')
{
if ($this->didDiscover) {
return $this;
Expand Down

0 comments on commit 4ad451b

Please sign in to comment.