summaryrefslogtreecommitdiff
path: root/actions/apitimelinementions.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/apitimelinementions.php')
-rw-r--r--actions/apitimelinementions.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/actions/apitimelinementions.php b/actions/apitimelinementions.php
index ecead98cc..7549b4722 100644
--- a/actions/apitimelinementions.php
+++ b/actions/apitimelinementions.php
@@ -71,7 +71,7 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
$this->user = $this->getTargetUser($this->arg('id'));
if (empty($this->user)) {
- $this->clientError(_('No such user!'), 404, $this->arg('format'));
+ $this->clientError(_('No such user!'), 404, $this->format);
return;
}
@@ -122,7 +122,7 @@ class ApiTimelineMentionsAction extends ApiBareAuthAction
$sitename, $this->user->nickname, $profile->getBestName()
);
- switch($this->arg('format')) {
+ switch($this->format) {
case 'xml':
$this->show_xml_timeline($this->notices);
break;