Permalink
Browse files

Fixing constant use in ProjectTask.

Fixing newline.
  • Loading branch information...
markstory committed Aug 5, 2009
1 parent 29d03ab commit b731408deb9d0381baeaa2681cb2eb75c85ae9f9
Showing with 3 additions and 4 deletions.
  1. +3 −4 cake/console/libs/tasks/project.php
@@ -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
*
@@ -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);
}

0 comments on commit b731408

Please sign in to comment.