Skip to content

Commit c8c1a52

Browse files
committed
Add $_SERVER['DOCUMENT_ROOT'] to CraftValetDriver
1 parent 83a76a4 commit c8c1a52

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cli/drivers/CraftValetDriver.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,7 @@ public function frontControllerPath($sitePath, $siteName, $uri)
191191
$_SERVER['SERVER_NAME'] = $_SERVER['HTTP_HOST'];
192192
$_SERVER['SCRIPT_NAME'] = $scriptName;
193193
$_SERVER['PHP_SELF'] = $scriptName;
194+
$_SERVER['DOCUMENT_ROOT'] = $sitePath.'/'.$frontControllerDirectory;
194195

195196
return $indexPath;
196197
}

0 commit comments

Comments
 (0)