]> source.dussan.org Git - nextcloud-server.git/commitdiff
Fix private member access of parent class in ocsresponse
authorMorris Jobke <hey@morrisjobke.de>
Thu, 16 Apr 2015 14:54:01 +0000 (16:54 +0200)
committerMorris Jobke <hey@morrisjobke.de>
Thu, 16 Apr 2015 14:54:01 +0000 (16:54 +0200)
* noticed while checking PHPDoc

lib/public/appframework/http/ocsresponse.php

index 4cc1ba80d03f45a4c321cb2d023e397dddd2e488..9ab582e8ae0cfaddbaa8b996a9080ef72509ef56 100644 (file)
@@ -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
                );