mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
updating paths for shell
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5061 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
026d680ccb
commit
5b42ca4355
1 changed files with 4 additions and 4 deletions
|
@ -383,10 +383,10 @@ class ShellDispatcher {
|
|||
$this->args[] = $params[$i];
|
||||
}
|
||||
}
|
||||
|
||||
if(!empty($this->params['working'])) {
|
||||
$app = basename($this->params['working']);
|
||||
} else {
|
||||
$this->params['working'] = dirname($this->params['working']) . DS . basename($this->params['working']);
|
||||
} else {
|
||||
$app = 'app';
|
||||
}
|
||||
if(isset($this->params['app'])) {
|
||||
|
@ -398,7 +398,7 @@ class ShellDispatcher {
|
|||
}
|
||||
if(in_array($app, array('cake', 'console', 'app'))){
|
||||
$app = 'app';
|
||||
$this->params['working'] = dirname(dirname(dirname(__FILE__))) . DIRECTORY_SEPARATOR . $app;
|
||||
$this->params['working'] = dirname(dirname(__FILE__));
|
||||
}
|
||||
$this->params = array_merge(array('app'=> $app, 'root'=> dirname($this->params['working'])), $this->params);
|
||||
}
|
||||
|
@ -423,8 +423,8 @@ class ShellDispatcher {
|
|||
function help() {
|
||||
$this->stdout("\nPaths:");
|
||||
$this->stdout(" -working: " . $this->params['working']);
|
||||
$this->stdout(" -app: ". APP_DIR);
|
||||
$this->stdout(" -root: " . ROOT);
|
||||
$this->stdout(" -app: ". APP);
|
||||
$this->stdout(" -core: " . CORE_PATH);
|
||||
|
||||
$this->stdout("\nAvailable Scripts:");
|
||||
|
|
Loading…
Reference in a new issue