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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2013-11-15 21:25:46 +0400
committerVincent Petry <pvince81@owncloud.com>2013-11-15 21:25:46 +0400
commit68f278025ced39518016d29f693fc0b4476710e6 (patch)
tree069bb2c490bb8173a9f8aa8fa222386b19bdd80a /apps
parentcb968c77d12315b47b0556e31ea1c0d6654342b8 (diff)
parent11425d142d6a52345365af21a955c94ad14d4b69 (diff)
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.php1
-rw-r--r--apps/files_sharing/templates/public.php1
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">