Skip to content

Commit

Permalink
Moving output below check for a single prefix.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Mar 7, 2010
1 parent 8216f50 commit 12edc75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cake/console/libs/tasks/project.php
Expand Up @@ -314,13 +314,13 @@ function getPrefix() {
$admin = '';
$prefixes = Configure::read('Routing.prefixes');
if (!empty($prefixes)) {
if (count($prefixes) == 1) {
return $prefixes[0] . '_';
}
if ($this->interactive) {
$this->out();
$this->out(__('You have more than one routing prefix configured', true));
}
if (count($prefixes) == 1) {
return $prefixes[0] . '_';
}
$options = array();
foreach ($prefixes as $i => $prefix) {
$options[] = $i + 1;
Expand Down

0 comments on commit 12edc75

Please sign in to comment.