Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_pdfviewer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-14 15:59:04 +0300
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2018-06-14 15:59:04 +0300
commit4e250aac5c7058b01572976898a1df33066a3c65 (patch)
tree81e8d6248f5bd2c8cb10e0d98bd1ffd4f0989ae7 /templates
parent895f48f671b81dae2d3eaf5ba2a59a70d30c0d37 (diff)
Fix undefined variable
"getAppVersion()" expects the ID of the app, but "$app" is not defined in the templates, so it was just replaced by the hardcoded ID of the app. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/viewer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/viewer.php b/templates/viewer.php
index 3e31814..961bb27 100644
--- a/templates/viewer.php
+++ b/templates/viewer.php
@@ -2,7 +2,7 @@
/** @var array $_ */
/** @var OCP\IURLGenerator $urlGenerator */
$urlGenerator = $_['urlGenerator'];
- $version = \OC::$server->getAppManager()->getAppVersion($app);
+ $version = \OC::$server->getAppManager()->getAppVersion('files_pdfviewer');
?>
<!DOCTYPE html>
<!--