summaryrefslogtreecommitdiff
path: root/actions/twitapilaconica.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/twitapilaconica.php')
-rw-r--r--actions/twitapilaconica.php18
1 files changed, 9 insertions, 9 deletions
diff --git a/actions/twitapilaconica.php b/actions/twitapilaconica.php
index 722423fae..8cd7a64b9 100644
--- a/actions/twitapilaconica.php
+++ b/actions/twitapilaconica.php
@@ -70,7 +70,7 @@ class TwitapilaconicaAction extends TwitterapiAction
switch ($apidata['content-type']) {
case 'xml':
$this->init_document('xml');
- common_element('version', null, LACONICA_VERSION);
+ $this->element('version', null, LACONICA_VERSION);
$this->end_document('xml');
break;
case 'json':
@@ -79,7 +79,7 @@ class TwitapilaconicaAction extends TwitterapiAction
$this->end_document('json');
break;
default:
- $this->client_error(_('API method not found!'), $code=404);
+ $this->clientError(_('API method not found!'), $code=404);
}
}
@@ -115,10 +115,10 @@ class TwitapilaconicaAction extends TwitterapiAction
switch ($apidata['content-type']) {
case 'xml':
$this->init_document('xml');
- common_element_start('config');
+ $this->elementStart('config');
// XXX: check that all sections and settings are legal XML elements
foreach ($keys as $section => $settings) {
- common_element_start($section);
+ $this->elementStart($section);
foreach ($settings as $setting) {
$value = common_config($section, $setting);
if (is_array($value)) {
@@ -128,11 +128,11 @@ class TwitapilaconicaAction extends TwitterapiAction
} else if ($value === true) {
$value = 'true';
}
- common_element($setting, null, $value);
+ $this->element($setting, null, $value);
}
- common_element_end($section);
+ $this->elementEnd($section);
}
- common_element_end('config');
+ $this->elementEnd('config');
$this->end_document('xml');
break;
case 'json':
@@ -148,7 +148,7 @@ class TwitapilaconicaAction extends TwitterapiAction
$this->end_document('json');
break;
default:
- $this->client_error(_('API method not found!'), $code=404);
+ $this->clientError(_('API method not found!'), $code=404);
}
}
@@ -169,6 +169,6 @@ class TwitapilaconicaAction extends TwitterapiAction
function wadl($args, $apidata)
{
parent::handle($args);
- common_server_error(_('API method under construction.'), 501);
+ $this->serverError(_('API method under construction.'), 501);
}
}