diff options
author | Vincent Petry <pvince81@owncloud.com> | 2013-11-15 09:25:46 -0800 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2013-11-15 09:25:46 -0800 |
commit | 68f278025ced39518016d29f693fc0b4476710e6 (patch) | |
tree | 069bb2c490bb8173a9f8aa8fa222386b19bdd80a /apps | |
parent | cb968c77d12315b47b0556e31ea1c0d6654342b8 (diff) | |
parent | 11425d142d6a52345365af21a955c94ad14d4b69 (diff) | |
download | nextcloud-server-68f278025ced39518016d29f693fc0b4476710e6.tar.gz nextcloud-server-68f278025ced39518016d29f693fc0b4476710e6.zip |
Merge pull request #5894 from owncloud/readd_sharing_token
readd sharing token to public template
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/public.php | 1 | ||||
-rw-r--r-- | apps/files_sharing/templates/public.php | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php index 6504de84386..d59f9b7401a 100644 --- a/apps/files_sharing/public.php +++ b/apps/files_sharing/public.php @@ -149,6 +149,7 @@ if (isset($path)) { $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path)); $tmpl->assign('fileTarget', basename($linkItem['file_target'])); $tmpl->assign('dirToken', $linkItem['token']); + $tmpl->assign('sharingToken', $token); $tmpl->assign('disableSharing', true); $allowPublicUploadEnabled = (bool) ($linkItem['permissions'] & OCP\PERMISSION_CREATE); if (\OCP\App::isEnabled('files_encryption')) { diff --git a/apps/files_sharing/templates/public.php b/apps/files_sharing/templates/public.php index ef4c1c433da..1d527dca8eb 100644 --- a/apps/files_sharing/templates/public.php +++ b/apps/files_sharing/templates/public.php @@ -6,6 +6,7 @@ <input type="hidden" id="isPublic" name="isPublic" value="1"> <input type="hidden" name="dir" value="<?php p($_['dir']) ?>" id="dir"> <input type="hidden" name="downloadURL" value="<?php p($_['downloadURL']) ?>" id="downloadURL"> +<input type="hidden" name="sharingToken" value="<?php p($_['sharingToken']) ?>" id="sharingToken"> <input type="hidden" name="filename" value="<?php p($_['filename']) ?>" id="filename"> <input type="hidden" name="mimetype" value="<?php p($_['mimetype']) ?>" id="mimetype"> <header><div id="header"> |