diff --git a/lib/Cake/Console/Command/Task/ProjectTask.php b/lib/Cake/Console/Command/Task/ProjectTask.php index c5751fb69..368512741 100644 --- a/lib/Cake/Console/Command/Task/ProjectTask.php +++ b/lib/Cake/Console/Command/Task/ProjectTask.php @@ -139,12 +139,20 @@ class ProjectTask extends Shell { $skel = $this->params['skel']; } while (!$skel) { - $skel = $this->in(__d('cake_console', "What is the path to the directory layout you wish to copy?\nExample: %s", APP, null, ROOT . DS . 'myapp' . DS)); - if ($skel == '') { + $skel = $this->in( + __d('cake_console', "What is the path to the directory layout you wish to copy?"), + null, + CAKE . 'Console' . DS . 'templates' . DS . 'skel' + ); + if (!$skel) { $this->err(__d('cake_console', 'The directory path you supplied was empty. Please try again.')); } else { while (is_dir($skel) === false) { - $skel = $this->in(__d('cake_console', 'Directory path does not exist please choose another:')); + $skel = $this->in( + __d('cake_console', 'Directory path does not exist please choose another:'), + null, + CAKE . 'Console' . DS . 'templates' . DS . 'skel' + ); } } }