From 12edc75a4f9b8487764ce622a20926c7d79c334c Mon Sep 17 00:00:00 2001 From: Mark Story Date: Sun, 7 Mar 2010 17:14:13 -0500 Subject: [PATCH] Moving output below check for a single prefix. --- cake/console/libs/tasks/project.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cake/console/libs/tasks/project.php b/cake/console/libs/tasks/project.php index b894716f58a..2c6e701d23f 100644 --- a/cake/console/libs/tasks/project.php +++ b/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;