From: Evan Prodromou Date: Wed, 11 Feb 2009 20:39:49 +0000 (-0500) Subject: change htmloutputter to use exception instead of common_user_error X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=1d5296e596168f6ee8b18e9917e8d8aa62ac254c;p=quix0rs-gnu-social.git change htmloutputter to use exception instead of common_user_error --- diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 45e61d2fc6..06603ac054 100644 --- a/lib/htmloutputter.php +++ b/lib/htmloutputter.php @@ -101,9 +101,8 @@ class HTMLOutputter extends XMLOutputter $type = common_negotiate_type($cp, $sp); if (!$type) { - common_user_error(_('This page is not available in a '. - 'media type you accept'), 406); - exit(0); + throw new ClientException(_('This page is not available in a '. + 'media type you accept'), 406); } }