mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
fixes #5194, cake bake with no params
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7499 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
33da4b0e75
commit
78a2eb2723
2 changed files with 4 additions and 1 deletions
|
@ -464,7 +464,7 @@ class ShellDispatcher {
|
|||
}
|
||||
|
||||
$params['app'] = basename($params['app']);
|
||||
$params['working'] = $params['root'] . '/' . $params['app'];
|
||||
$params['working'] = rtrim($params['root'], '/') . '/' . $params['app'];
|
||||
|
||||
if (!empty($matches[0]) || !empty($isWin)) {
|
||||
$params = str_replace('/', '\\', $params);
|
||||
|
|
|
@ -104,6 +104,9 @@ class ProjectTask extends Shell {
|
|||
$this->err(sprintf(__('Could not set permissions on %s', true), $path . DS .'tmp'));
|
||||
$this->out(sprintf(__('chmod -R 0777 %s', true), $path . DS .'tmp'));
|
||||
}
|
||||
|
||||
$this->params['working'] = $path;
|
||||
$this->params['app'] = basename($path);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue