]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
change htmloutputter to use exception instead of common_user_error
authorEvan Prodromou <evan@controlyourself.ca>
Wed, 11 Feb 2009 20:39:49 +0000 (15:39 -0500)
committerEvan Prodromou <evan@controlyourself.ca>
Wed, 11 Feb 2009 20:39:49 +0000 (15:39 -0500)
lib/htmloutputter.php

index 45e61d2fc6b32137ca2f875a24e2a1679f7fe9b6..06603ac05485660b206726ad217a769756f9713b 100644 (file)
@@ -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);
             }
         }