summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorzach <zach@copley.name>2008-07-20 03:09:05 -0400
committerzach <zach@copley.name>2008-07-20 03:09:05 -0400
commit140689800b03ff704f6c70260c2b740ad41578c0 (patch)
tree7d9fe90e1ae731f9275910302ec6063df2486d62 /lib/util.php
parent00a6f3d01510e01a5dcc0999a50fba7bafbcd5e1 (diff)
Twitter-compatible API - Error handling that better matches Twitter's
darcs-hash:20080720070905-ca946-dda57dd92210461361fd58b7a3244bf24c01e801.gz
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/util.php b/lib/util.php
index 62f7abc9e..36ccfe29a 100644
--- a/lib/util.php
+++ b/lib/util.php
@@ -223,14 +223,6 @@ function common_show_header($pagetitle, $callable=NULL, $data=NULL, $headercall=
common_element_start('div', array('id' => 'content'));
}
-# XXX: Refactor w/common_user_error() ?
-function common_show_basic_auth_error() {
- header('HTTP/1.1 401 Unauthorized');
- header('Content-type: text/plain');
- print("Could not authenticate you."); # exactly what Twitter says - no \n
- exit();
-}
-
function common_show_footer() {
global $xw, $config;
common_element_end('div'); # content div