change htmloutputter to use exception instead of common_user_error
This commit is contained in:
parent
ab37f84b5a
commit
1d5296e596
|
@ -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 '.
|
||||
throw new ClientException(_('This page is not available in a '.
|
||||
'media type you accept'), 406);
|
||||
exit(0);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user