revert to common_user_error, which is what is used everywhere
darcs-hash:20080626225002-84dde-898a118457577e321f426270f8c98072962341ab.gz
This commit is contained in:
parent
a9cf27c4e6
commit
42322efb25
@ -44,7 +44,7 @@ function common_server_error($msg, $code=500) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# Show a user error
|
# Show a user error
|
||||||
function common_client_error($msg, $code=400) {
|
function common_user_error($msg, $code=400) {
|
||||||
static $status = array(400 => 'Bad Request',
|
static $status = array(400 => 'Bad Request',
|
||||||
401 => 'Unauthorized',
|
401 => 'Unauthorized',
|
||||||
402 => 'Payment Required',
|
402 => 'Payment Required',
|
||||||
@ -136,7 +136,7 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
|
|||||||
common_accept_to_prefs(PAGE_TYPE_PREFS));
|
common_accept_to_prefs(PAGE_TYPE_PREFS));
|
||||||
|
|
||||||
if (!$type) {
|
if (!$type) {
|
||||||
common_client_error(_t('This page is not available in a media type you accept'), 406);
|
common_user_error(_t('This page is not available in a media type you accept'), 406);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user