diff --git a/Error/Processor.php b/Error/Processor.php index c51a3a9..42d3a04 100755 --- a/Error/Processor.php +++ b/Error/Processor.php @@ -435,8 +435,8 @@ protected function _getClientIp() protected function _getIndexDir() { $documentRoot = ''; - if (!empty($this->request->getParam('DOCUMENT_ROOT'))) { - $documentRoot = rtrim(realpath($this->request->getParam('DOCUMENT_ROOT')), '/'); + if (!empty($this->request->getServer('DOCUMENT_ROOT'))) { + $documentRoot = rtrim(realpath($this->request->getServer('DOCUMENT_ROOT')), '/'); } return dirname($documentRoot . $this->_scriptName) . '/';