X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=actions%2Fapistatusesdestroy.php;h=8641518733d7db6efed08d31bc2a2579a8594b67;hb=261ccfac8699534ff584a2f93d5dcd384529d855;hp=b4a8870faab92e6e5f5597b8e6701315900d0d7f;hpb=9948523c33ea0d02681ff1e0cd4fcb839dc9df96;p=quix0rs-gnu-social.git diff --git a/actions/apistatusesdestroy.php b/actions/apistatusesdestroy.php index b4a8870faa..8641518733 100644 --- a/actions/apistatusesdestroy.php +++ b/actions/apistatusesdestroy.php @@ -38,8 +38,6 @@ if (!defined('STATUSNET')) { exit(1); } -require_once INSTALLDIR . '/lib/apiauth.php'; - /** * Deletes one of the authenticating user's statuses (notices). * @@ -66,7 +64,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction * * @return boolean success flag */ - function prepare($args) + function prepare(array $args=array()) { parent::prepare($args); @@ -77,7 +75,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction $this->notice_id = (int)$this->arg('id'); } - $this->notice = Notice::staticGet((int)$this->notice_id); + $this->notice = Notice::getKV((int)$this->notice_id); return true; } @@ -91,7 +89,7 @@ class ApiStatusesDestroyAction extends ApiAuthAction * * @return void */ - function handle($args) + function handle(array $args=array()) { parent::handle($args);