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;