Browse Source

Update ServerShell to use provided documentRoot.

Fix ServerShell from using the wrong path to the routing script when
a custom document root is used. Thanks to Marko Marković for the patch.

Fixes #3909
mark_story 12 years ago
parent
commit
cfa260d8c5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lib/Cake/Console/Command/ServerShell.php

+ 1 - 1
lib/Cake/Console/Command/ServerShell.php

@@ -130,7 +130,7 @@ class ServerShell extends AppShell {
 			$this->_host,
 			$this->_port,
 			$this->_documentRoot,
-			WWW_ROOT . '/index.php'
+			$this->_documentRoot . '/index.php'
 		);
 
 		$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;