switch ($this->format) {
case 'xml':
$this->initDocument('xml');
- $this->element('version', null, STATUSNET_VERSION);
+ $this->element('version', null, GNUSOCIAL_VERSION);
$this->endDocument('xml');
break;
case 'json':
$this->initDocument('json');
- print '"'.STATUSNET_VERSION.'"';
+ print '"'.GNUSOCIAL_VERSION.'"';
$this->endDocument('json');
break;
default:
- $this->clientError(
- // TRANS: Client error displayed when coming across a non-supported API method.
- _('API method not found.'),
- 404,
- $this->format
- );
- break;
+ // TRANS: Client error displayed when coming across a non-supported API method.
+ $this->clientError(_('API method not found.'), 404);
}
}
*
* @return boolean is read only action?
*/
- function isReadOnly($args)
+ function isReadOnly(array $args=array())
{
return true;
}