diff options
author | Evan Prodromou <evan@prodromou.name> | 2008-06-26 18:50:02 -0400 |
---|---|---|
committer | Evan Prodromou <evan@prodromou.name> | 2008-06-26 18:50:02 -0400 |
commit | 42322efb25fb32d2102205ebdbabd2450799cdd4 (patch) | |
tree | 288c0e88a0693a349205cfdc90aa4c159ecddc6a | |
parent | a9cf27c4e69b8ab3f2f276af6e8459f00a30367f (diff) |
revert to common_user_error, which is what is used everywhere
darcs-hash:20080626225002-84dde-898a118457577e321f426270f8c98072962341ab.gz
-rw-r--r-- | lib/util.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/util.php b/lib/util.php index e865a2b41..eb824f4b8 100644 --- a/lib/util.php +++ b/lib/util.php @@ -44,7 +44,7 @@ function common_server_error($msg, $code=500) { } # Show a user error -function common_client_error($msg, $code=400) { +function common_user_error($msg, $code=400) { static $status = array(400 => 'Bad Request', 401 => 'Unauthorized', 402 => 'Payment Required', @@ -136,7 +136,7 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall= common_accept_to_prefs(PAGE_TYPE_PREFS)); 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); } |