From: Morris Jobke Date: Thu, 16 Apr 2015 14:54:01 +0000 (+0200) Subject: Fix private member access of parent class in ocsresponse X-Git-Tag: v8.1.0alpha2~56^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1d30efdd73a2f2c94ecb0bdd460d0aa72a09923d;p=nextcloud-server.git Fix private member access of parent class in ocsresponse * noticed while checking PHPDoc --- diff --git a/lib/public/appframework/http/ocsresponse.php b/lib/public/appframework/http/ocsresponse.php index 4cc1ba80d03..9ab582e8ae0 100644 --- a/lib/public/appframework/http/ocsresponse.php +++ b/lib/public/appframework/http/ocsresponse.php @@ -64,7 +64,7 @@ class OCSResponse extends Response { $dimension=-1, $itemscount='', $itemsperpage='') { $this->format = $format; - $this->status = $status; + $this->setStatus($status); $this->statuscode = $statuscode; $this->message = $message; $this->data = $data; @@ -89,7 +89,7 @@ class OCSResponse extends Response { public function render() { return OC_OCS::generateXml( - $this->format, $this->status, $this->statuscode, $this->message, + $this->format, $this->getStatus(), $this->statuscode, $this->message, $this->data, $this->tag, $this->tagattribute, $this->dimension, $this->itemscount, $this->itemsperpage );