A few fixes by scrutinizer

pull/1/head
Victor Dubiniuk 9 years ago
parent 76ef4e48aa
commit 488d68de6a

@ -42,7 +42,7 @@ define("owncloud/widgets/ocToolbar",
ocClose.startup(); ocClose.startup();
}); });
return callback(ocToolbar); return callback(ocToolbar);
}; }
// init // init
makeWidget(function (widget) { makeWidget(function (widget) {
return callback(widget); return callback(widget);

@ -78,7 +78,7 @@ class Op extends \OCA\Documents\Db {
AND `seq`>? AND `seq`>?
ORDER BY `seq` ASC ORDER BY `seq` ASC
'); ');
$result = $query->execute(array($esId, $seq)); $query->execute(array($esId, $seq));
return $query->fetchAll(); return $query->fetchAll();
} }

@ -32,12 +32,12 @@ class DownloadResponse extends \OCP\AppFramework\Http\Response {
$this->view = new View('/' . $user); $this->view = new View('/' . $user);
if (!$this->view->file_exists($path)){ if (!$this->view->file_exists($path)){
parent::setStatus(Http::STATUS_NOT_FOUND); $this->setStatus(Http::STATUS_NOT_FOUND);
} }
} }
public function render(){ public function render(){
if (parent::getStatus() === Http::STATUS_NOT_FOUND){ if ($this->getStatus() === Http::STATUS_NOT_FOUND){
return ''; return '';
} }
$info = $this->view->getFileInfo($this->path); $info = $this->view->getFileInfo($this->path);

Loading…
Cancel
Save