fix to paths in shell

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5100 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-05-15 03:17:17 +00:00
parent 4c9a9ebb31
commit 8e161f4079

View file

@ -408,6 +408,7 @@ class ShellDispatcher {
if(!empty($this->params['working'])) {
$root = dirname($this->params['working']);
$app = basename($this->params['working']);
unset($this->params['working']);
}
if(!empty($this->params['app'])) {
@ -418,6 +419,7 @@ class ShellDispatcher {
$root = $root . DS . $app;
$app = $this->params['app'];
}
unset($this->params['app']);
}