Permalink
Browse files

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
  • Loading branch information...
1 parent 2918ae9 commit cfa260d8c57b80c4dc262d0801f7fdcfc79d2912 @markstory markstory committed Jul 10, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Command/ServerShell.php
@@ -130,7 +130,7 @@ public function main() {
$this->_host,
$this->_port,
$this->_documentRoot,
- WWW_ROOT . '/index.php'
+ $this->_documentRoot . '/index.php'
);
$port = ($this->_port == self::DEFAULT_PORT) ? '' : ':' . $this->_port;

0 comments on commit cfa260d

Please sign in to comment.