Skip to content

Commit ec05c21

Browse files
authored
Merge pull request #414 from terbolous/master
Add $_SERVER['DOCUMENT_ROOT'] to CraftValetDriver
2 parents 83a76a4 + c8c1a52 commit ec05c21

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)