diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-06-14 15:59:04 +0300 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-06-14 15:59:04 +0300 |
commit | 4e250aac5c7058b01572976898a1df33066a3c65 (patch) | |
tree | 81e8d6248f5bd2c8cb10e0d98bd1ffd4f0989ae7 /templates | |
parent | 895f48f671b81dae2d3eaf5ba2a59a70d30c0d37 (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.php | 2 |
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> <!-- |