Skip to content

Commit

Permalink
Fixing constant use in ProjectTask.
Browse files Browse the repository at this point in the history
Fixing newline.
  • Loading branch information
markstory committed Aug 12, 2009
1 parent 29d03ab commit b731408
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cake/console/libs/tasks/project.php
Expand Up @@ -19,7 +19,6 @@
* @since CakePHP(tm) v 1.2
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
*/

/**
* Task class for creating new project apps and plugins
*
Expand Down Expand Up @@ -56,13 +55,13 @@ function execute($project = null) {

if (empty($this->params['skel'])) {
$this->params['skel'] = '';
if (is_dir(CAKE_CORE_INCLUDE_PATH . DS . CAKE . 'console' . DS . 'templates' . DS . 'skel') === true) {
$this->params['skel'] = CAKE_CORE_INCLUDE_PATH . DS . CAKE . 'console' . DS . 'templates' . DS . 'skel';
if (is_dir(CAKE . 'console' . DS . 'templates' . DS . 'skel') === true) {
$this->params['skel'] = CAKE . 'console' . DS . 'templates' . DS . 'skel';
}
}

while (!$project) {
$prompt = __("What is the full path for this app including the app directory name?\b Example:", true);
$prompt = __("What is the full path for this app including the app directory name?\n Example:", true);
$default = $this->params['working'] . DS . 'myapp';
$project = $this->in($prompt . $default, null, $default);
}
Expand Down

0 comments on commit b731408

Please sign in to comment.