]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/htmloutputter.php
change htmloutputter to use exception instead of common_user_error
[quix0rs-gnu-social.git] / 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);
             }
         }