From 675252897f687772f2e6c04ed00d63a255493314 Mon Sep 17 00:00:00 2001 From: frankdelange Date: Sun, 19 Mar 2017 21:17:12 +0100 Subject: [PATCH] files_reader: fix missing quotes, dllink->downloadLink in template --- files_reader/lib/Controller/PageController.php | 6 +++--- files_reader/templates/epubreader.php | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/files_reader/lib/Controller/PageController.php b/files_reader/lib/Controller/PageController.php index 76a5747..450d678 100644 --- a/files_reader/lib/Controller/PageController.php +++ b/files_reader/lib/Controller/PageController.php @@ -135,9 +135,9 @@ class PageController extends Controller { } return [ - fileName => pathInfo($filePath, PATHINFO_FILENAME), - fileType => strtolower(pathInfo($filePath, PATHINFO_EXTENSION)), - fileId => $fileId + 'fileName' => pathInfo($filePath, PATHINFO_FILENAME), + 'fileType' => strtolower(pathInfo($filePath, PATHINFO_EXTENSION)), + 'fileId' => $fileId ]; } diff --git a/files_reader/templates/epubreader.php b/files_reader/templates/epubreader.php index f0e83bf..f2ff51f 100644 --- a/files_reader/templates/epubreader.php +++ b/files_reader/templates/epubreader.php @@ -12,7 +12,7 @@ $preferences = $_['preferences']; $metadata = $_['metadata']; $annotations = $_['annotations']; - $title = htmlentities(basename($dllink)); + $title = htmlentities(basename($downloadLink)); $revision = '0071'; $version = \OCP\App::getAppVersion('files_reader') . '.' . $revision;