forked from GNUsocial/gnu-social
Convert all actions to use new UI functions
I did a massive search-and-replace to get all the action subclasses to use the new output function (common_element() -> $this->element(), etc.) There's still a lot to do, but it's a first step
This commit is contained in:
@@ -34,7 +34,7 @@ class TwitapihelpAction extends TwitterapiAction
|
||||
|
||||
if ($apidata['content-type'] == 'xml') {
|
||||
$this->init_document('xml');
|
||||
common_element('ok', null, 'true');
|
||||
$this->element('ok', null, 'true');
|
||||
$this->end_document('xml');
|
||||
} elseif ($apidata['content-type'] == 'json') {
|
||||
$this->init_document('json');
|
||||
|
||||
Reference in New Issue
Block a user