Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/richdocuments.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-08-04 22:08:36 +0400
committerVictor Dubiniuk <victor.dubiniuk@gmail.com>2014-08-04 22:08:36 +0400
commiteb170d671308c732a90d3661535b9e4aa5fbd142 (patch)
treee87db7fcb20b0687710f1175ea03e0cb76308bda /lib
parent6edaca04cd83795008e82b3ec532ca7b8f6ef04e (diff)
Download_Simple -> Download\Simple
Diffstat (limited to 'lib')
-rw-r--r--lib/download.php2
-rw-r--r--lib/download/simple.php6
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'] );