From 0d999092d9cb279e350e228b877cb3de7b4e113d Mon Sep 17 00:00:00 2001 From: gwoo Date: Sun, 22 Jul 2007 03:23:32 +0000 Subject: [PATCH] updating console paths git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5449 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/console/cake.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cake/console/cake.php b/cake/console/cake.php index 2ec8a62ab..e49611aec 100644 --- a/cake/console/cake.php +++ b/cake/console/cake.php @@ -434,8 +434,8 @@ class ShellDispatcher { if ($this->params['app']{0} == '/') { $root = dirname($this->params['app']); $app = basename($this->params['app']); - } else { - $root = realpath($root . DS . $app); + } else if (!empty($this->params['working'])) { + $root = realpath($this->params['working']); } $app = $this->params['app']; unset($this->params['app']);