mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
fixing paths in shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5080 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
aca2ccf3bb
commit
172492963e
1 changed files with 6 additions and 2 deletions
|
@ -400,11 +400,15 @@ class ShellDispatcher {
|
||||||
} else {
|
} else {
|
||||||
$app = 'app';
|
$app = 'app';
|
||||||
}
|
}
|
||||||
|
|
||||||
if(isset($this->params['app'])) {
|
if(isset($this->params['app'])) {
|
||||||
if($this->params['app']{0} == '/') {
|
if($this->params['app']{0} == '/') {
|
||||||
$this->params['working'] = $this->params['app'];
|
$this->params['working'] = $this->params['app'];
|
||||||
|
unset($this->params['app']);
|
||||||
|
$app = basename($this->params['working']);
|
||||||
} else {
|
} else {
|
||||||
$app = $this->params['app'];
|
$app = $this->params['app'];
|
||||||
|
$this->params['working'] = dirname(dirname(dirname(__FILE__)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue