Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions system/Router/RouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ public function __construct(FileLocatorInterface $locator, Modules $moduleConfig
// Normalize the path string in routeFiles array.
foreach ($this->routeFiles as $routeKey => $routesFile) {
$realpath = realpath($routesFile);
$this->routeFiles[$routeKey] = ($realpath === false) ? $routesFile : $realpath;
$this->routeFiles[$routeKey] = ($realpath === false) ? $routesFile : str_replace('\\', '/', $realpath);
}
}

Expand All @@ -316,7 +316,7 @@ public function loadRoutes(string $routesFile = APPPATH . 'Config/Routes.php')

// Normalize the path string in routesFile
$realpath = realpath($routesFile);
$routesFile = ($realpath === false) ? $routesFile : $realpath;
$routesFile = ($realpath === false) ? $routesFile : str_replace('\\', '/', $realpath);

// Include the passed in routesFile if it doesn't exist.
// Only keeping that around for BC purposes for now.
Expand Down