Convert 'horde' even if only searching for the queue id.
authorJan Schneider <jan@horde.org>
Mon, 14 Sep 2009 10:38:36 +0000 (12:38 +0200)
committerJan Schneider <jan@horde.org>
Mon, 14 Sep 2009 10:38:36 +0000 (12:38 +0200)
framework/Release/lib/Horde/Release/Whups.php

index 96190d7..e95e31e 100644 (file)
@@ -47,10 +47,6 @@ class Horde_Release_Whups
      */
     public function addNewVersion($module, $version, $desc = '')
     {
-        if ($module == 'horde') {
-            $module = 'horde base';
-        }
-
         $id = $this->getQueueId($module);
         if ($id === false) {
             throw new Horde_Exception('Unable to locate requested queue');
@@ -76,6 +72,10 @@ class Horde_Release_Whups
      */
     function getQueueId($module)
     {
+        if ($module == 'horde') {
+            $module = 'horde base';
+        }
+
         $queues = $this->_listQueues();
 
         foreach ($queues as $id => $queue) {