diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-02-11 15:39:49 -0500 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-02-11 15:39:49 -0500 |
commit | 1d5296e596168f6ee8b18e9917e8d8aa62ac254c (patch) | |
tree | 17277fed1f9aef169f183b6a911d3646dbc52d47 | |
parent | ab37f84b5a2850e8f10b78a1a3781edb0981b7ca (diff) |
change htmloutputter to use exception instead of common_user_error
-rw-r--r-- | lib/htmloutputter.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/lib/htmloutputter.php b/lib/htmloutputter.php index 45e61d2fc..06603ac05 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); } } |