Twitter-compatible API: /help/test was emmitting dupe elements. Fixed.
darcs-hash:20080721091702-ca946-e114030e33e4e1237006c7e64d8a0de8f8d9e7fc.gz
This commit is contained in:
parent
05fe4f6a2f
commit
5e92efe85f
@ -31,9 +31,7 @@ class TwitapihelpAction extends TwitterapiAction {
|
|||||||
global $xw;
|
global $xw;
|
||||||
if ($apidata['content-type'] == 'xml') {
|
if ($apidata['content-type'] == 'xml') {
|
||||||
$this->init_document('xml');
|
$this->init_document('xml');
|
||||||
common_start_xml();
|
|
||||||
common_element('ok', NULL, 'true');
|
common_element('ok', NULL, 'true');
|
||||||
common_end_xml();
|
|
||||||
$this->end_document('xml');
|
$this->end_document('xml');
|
||||||
} elseif ($apidata['content-type'] == 'json') {
|
} elseif ($apidata['content-type'] == 'json') {
|
||||||
$this->init_document('json');
|
$this->init_document('json');
|
||||||
|
Loading…
Reference in New Issue
Block a user