diff --git a/lib/Db/WopiMapper.php b/lib/Db/WopiMapper.php index 7425b22dd5..82f9016453 100644 --- a/lib/Db/WopiMapper.php +++ b/lib/Db/WopiMapper.php @@ -68,6 +68,10 @@ public function __construct(IDBConnection $db, * @param string $serverHost * @param string $guestDisplayname * @param int $templateDestination + * @param bool $hideDownload + * @param bool $direct + * @param int $templateId + * @param string $share * @return Wopi */ public function generateFileToken($fileId, $owner, $editor, $version, $updatable, $serverHost, $guestDisplayname = null, $templateDestination = 0, $hideDownload = false, $direct = false, $templateId = 0, $share = null) { diff --git a/lib/TokenManager.php b/lib/TokenManager.php index da40a5e98a..286c8e2197 100644 --- a/lib/TokenManager.php +++ b/lib/TokenManager.php @@ -281,6 +281,7 @@ public function generateWopiTokenForTemplate( $serverHost, $isGuest ? '' : null, 0, + false, $direct, $templateFile->getId() ); @@ -295,9 +296,9 @@ public function generateWopiTokenForTemplate( $updatable, $serverHost, $isGuest ? '' : null, - 0, - $direct, - $targetFile->getId() + $targetFile->getId(), + false, + $direct ); }