Match parent class definition of clientError

This commit is contained in:
Mikael Nordfeldth 2015-10-10 20:51:53 +02:00
parent b4c51b2d39
commit a793d211d2
1 changed files with 2 additions and 2 deletions

View File

@ -30,7 +30,7 @@ if (!defined('GNUSOCIAL')) { exit(1); }
/** /**
* Upload an image via the API. Returns a shortened URL for the image * Upload an image via the API. Returns a shortened URL for the image
* to the user. * to the user. Apparently modelled after a former Twitpic API.
* *
* @category API * @category API
* @package StatusNet * @package StatusNet
@ -108,7 +108,7 @@ class ApiMediaUploadAction extends ApiAuthAction
* *
* @param String $msg an error message * @param String $msg an error message
*/ */
function clientError($msg) function clientError($msg, $code=400, $format=null)
{ {
$this->initDocument(); $this->initDocument();
$this->elementStart('rsp', array('stat' => 'fail')); $this->elementStart('rsp', array('stat' => 'fail'));