diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-08-04 22:08:36 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2014-08-04 22:08:36 +0400 |
commit | eb170d671308c732a90d3661535b9e4aa5fbd142 (patch) | |
tree | e87db7fcb20b0687710f1175ea03e0cb76308bda /lib | |
parent | 6edaca04cd83795008e82b3ec532ca7b8f6ef04e (diff) |
Download_Simple -> Download\Simple
Diffstat (limited to 'lib')
-rw-r--r-- | lib/download.php | 2 | ||||
-rw-r--r-- | lib/download/simple.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/lib/download.php b/lib/download.php index 5f9237af..255591d4 100644 --- a/lib/download.php +++ b/lib/download.php @@ -45,7 +45,7 @@ class Download { if (isset($_SERVER['HTTP_RANGE'])) { $this->instance = new Download\Range($owner, $filepath); } else { - $this->instance = new Download_Simple($owner, $filepath); + $this->instance = new Download\Simple($owner, $filepath); } $this->view = $this->getView($owner); diff --git a/lib/download/simple.php b/lib/download/simple.php index db955ecb..916249e7 100644 --- a/lib/download/simple.php +++ b/lib/download/simple.php @@ -9,12 +9,12 @@ * later. */ -namespace OCA\Documents; +namespace OCA\Documents\Download; /** * Class processing complete download */ -class Download_Simple extends \OCA\Documents\Download { +class Simple extends \OCA\Documents\Download { public function __construct($owner, $filepath){ $this->view = $this->getView($owner); @@ -27,7 +27,7 @@ class Download_Simple extends \OCA\Documents\Download { public function sendResponse(){ $mimetype = $this->getMimeType(); $content = $this->view->file_get_contents($this->filepath); - $data = Filter::read($content, $mimetype); + $data = \OCA\Documents\Filter::read($content, $mimetype); header( 'Content-Type:' . $data['mimetype'] ); |