From 1c4f7722da90e8e8ce0489720ede223804885377 Mon Sep 17 00:00:00 2001 From: zach Date: Tue, 30 Sep 2008 17:25:26 -0400 Subject: Twitter-compatible API - factored out redundant JSON printing functions darcs-hash:20080930212526-462f3-abe9f1f2fc395c751b2861e686d638ea0a8ca001.gz --- actions/twitapidirect_messages.php | 2 +- actions/twitapiusers.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'actions') diff --git a/actions/twitapidirect_messages.php b/actions/twitapidirect_messages.php index 8f0ecb449..fcdf822e0 100644 --- a/actions/twitapidirect_messages.php +++ b/actions/twitapidirect_messages.php @@ -215,7 +215,7 @@ class Twitapidirect_messagesAction extends TwitterapiAction { } } - $this->show_twitter_json_dmsgs($dmsgs); + $this->show_json_objects($dmsgs); $this->end_document('json'); } diff --git a/actions/twitapiusers.php b/actions/twitapiusers.php index 6dad53818..cb682695a 100644 --- a/actions/twitapiusers.php +++ b/actions/twitapiusers.php @@ -116,7 +116,7 @@ class TwitapiusersAction extends TwitterapiAction { $this->end_document('xml'); } elseif ($apidata['content-type'] == 'json') { $this->init_document('json'); - $this->show_twitter_json_users($twitter_user); + $this->show_json_objects($twitter_user); $this->end_document('json'); } else { common_user_error(_('API method not found!'), $code = 404); -- cgit v1.2.3-54-g00ecf