Skip to content

Commit 2227945

Browse files
author
Martin Leveille
committed
Fix hard coded front controller directory for Craft
1 parent 8df4dc4 commit 2227945

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cli/drivers/CraftValetDriver.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ public function frontControllerPath($sitePath, $siteName, $uri)
183183
$parts = explode('/', $uri);
184184

185185
if (count($parts) > 1 && in_array($parts[1], $locales)) {
186-
$indexPath = $sitePath.'/public/'. $parts[1] .'/index.php';
187-
$scriptName = '/' . $parts[1] . '/index.php';
186+
$indexPath = $sitePath.'/'.$frontControllerDirectory.'/'.$parts[1].'/index.php';
187+
$scriptName = '/'.$parts[1].'/index.php';
188188
}
189189

190190
$_SERVER['SCRIPT_FILENAME'] = $indexPath;

0 commit comments

Comments
 (0)