diff --git a/core/install/install.php b/core/install/install.php index 656361b7a4..9c543d32e5 100644 --- a/core/install/install.php +++ b/core/install/install.php @@ -25,7 +25,7 @@ */ //set the include path - $document_root = substr(getcwd(), 0, strlen($document_root) - strlen('/core/install')); + $document_root = substr(getcwd(), 0, strlen(getcwd()) - strlen('/core/install')); set_include_path($document_root); $_SERVER["DOCUMENT_ROOT"] = $document_root; $_SERVER["PROJECT_ROOT"] = $document_root;