Remove HTTP response strings from exception calls.
authorJan Schneider <jan@horde.org>
Thu, 9 Sep 2010 19:00:36 +0000 (21:00 +0200)
committerJan Schneider <jan@horde.org>
Fri, 10 Sep 2010 15:48:18 +0000 (17:48 +0200)
chora/lib/Application.php

index 1fbe936..a1cafa2 100644 (file)
@@ -108,7 +108,7 @@ class Chora_Application extends Horde_Registry_Application
         }
 
         if (!isset($sourceroots[$acts['rt']])) {
-            throw new Chora_Exception(_("Malformed URL"), '400 Bad Request');
+            throw new Chora_Exception(_("Malformed URL"));
         }
 
         $sourcerootopts = $sourceroots[$acts['rt']];
@@ -154,11 +154,11 @@ class Chora_Application extends Horde_Registry_Application
 
         if (($sourcerootopts['type'] == 'cvs') &&
             !@is_dir($sourcerootopts['location'])) {
-            throw new Chora_Exception(_("Sourceroot not found. This could be a misconfiguration by the server administrator, or the server could be having temporary problems. Please try again later."), '500 Internal Server Error');
+            throw new Chora_Exception(_("Sourceroot not found. This could be a misconfiguration by the server administrator, or the server could be having temporary problems. Please try again later."));
         }
 
         if (Chora::isRestricted($where)) {
-            throw new Chora_Exception(sprintf(_("%s: Forbidden by server configuration"), $where), '403 Forbidden');
+            throw new Chora_Exception(sprintf(_("%s: Forbidden by server configuration"), $where));
         }
     }