1
0
Fork 0
mirror of https://github.com/Yetangitu/owncloud-apps.git synced 2025-10-02 14:49:17 +02:00

files_reader: fix missing quotes, dllink->downloadLink in template

This commit is contained in:
frankdelange 2017-03-19 21:17:12 +01:00
parent d6026ad0a0
commit 675252897f
2 changed files with 4 additions and 4 deletions

View file

@ -135,9 +135,9 @@ class PageController extends Controller {
} }
return [ return [
fileName => pathInfo($filePath, PATHINFO_FILENAME), 'fileName' => pathInfo($filePath, PATHINFO_FILENAME),
fileType => strtolower(pathInfo($filePath, PATHINFO_EXTENSION)), 'fileType' => strtolower(pathInfo($filePath, PATHINFO_EXTENSION)),
fileId => $fileId 'fileId' => $fileId
]; ];
} }

View file

@ -12,7 +12,7 @@
$preferences = $_['preferences']; $preferences = $_['preferences'];
$metadata = $_['metadata']; $metadata = $_['metadata'];
$annotations = $_['annotations']; $annotations = $_['annotations'];
$title = htmlentities(basename($dllink)); $title = htmlentities(basename($downloadLink));
$revision = '0071'; $revision = '0071';
$version = \OCP\App::getAppVersion('files_reader') . '.' . $revision; $version = \OCP\App::getAppVersion('files_reader') . '.' . $revision;