Permalink
Browse files

Moving output below check for a single prefix.

  • Loading branch information...
1 parent 8216f50 commit 12edc75a4f9b8487764ce622a20926c7d79c334c @markstory markstory committed Mar 7, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 cake/console/libs/tasks/project.php
@@ -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;

0 comments on commit 12edc75

Please sign in to comment.