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,14 +400,18 @@ class ShellDispatcher {
|
|||
} else {
|
||||
$app = 'app';
|
||||
}
|
||||
|
||||
if(isset($this->params['app'])) {
|
||||
if($this->params['app']{0} == '/') {
|
||||
$this->params['working'] = $this->params['app'];
|
||||
unset($this->params['app']);
|
||||
$app = basename($this->params['working']);
|
||||
} else {
|
||||
$app = $this->params['app'];
|
||||
}
|
||||
$this->params['working'] = dirname(dirname(dirname(__FILE__)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if(empty($this->params['app']) && in_array($app, array('cake', 'console', 'app'))){
|
||||
$app = 'app';
|
||||
$this->params['working'] = dirname(dirname(__FILE__));
|
||||
|
|
Loading…
Add table
Reference in a new issue