|
|
@ -1,4 +1,13 @@
|
|
|
|
<?php
|
|
|
|
<?php
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|
|
|
* ownCloud - Office App
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* @author Victor Dubiniuk
|
|
|
|
|
|
|
|
* @copyright 2013 Victor Dubiniuk victor.dubiniuk@gmail.com
|
|
|
|
|
|
|
|
*
|
|
|
|
|
|
|
|
* This file is licensed under the Affero General Public License version 3 or
|
|
|
|
|
|
|
|
* later.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
namespace OCA\Office;
|
|
|
|
namespace OCA\Office;
|
|
|
|
|
|
|
|
|
|
|
@ -22,7 +31,6 @@ class Download {
|
|
|
|
|
|
|
|
|
|
|
|
public function sendResponse(){
|
|
|
|
public function sendResponse(){
|
|
|
|
\OCP\Response::disableCaching();
|
|
|
|
\OCP\Response::disableCaching();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!$this->fileExists()){
|
|
|
|
if (!$this->fileExists()){
|
|
|
|
$this->sendNotFound();
|
|
|
|
$this->sendNotFound();
|
|
|
|