From 6133a3f5afc630c953e0f5e75b0829e60cf44144 Mon Sep 17 00:00:00 2001 From: Jan Schneider Date: Thu, 9 Sep 2010 21:00:36 +0200 Subject: [PATCH] Remove HTTP response strings from exception calls. --- chora/lib/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chora/lib/Application.php b/chora/lib/Application.php index 1fbe936e5..a1cafa21a 100644 --- a/chora/lib/Application.php +++ b/chora/lib/Application.php @@ -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)); } } -- 2.11.0