summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/public.php
diff options
context:
space:
mode:
authorPellaeon Lin <nfsmwlin@gmail.com>2014-02-06 12:26:12 +0800
committerPellaeon Lin <nfsmwlin@gmail.com>2014-02-06 12:26:36 +0800
commit946fccc0dd5b7e51203d51fd2c60161cad7050ba (patch)
treef6eaaf358436a7ad63908cd7d19bf8a3cb896710 /apps/files_sharing/public.php
parent8c56e21ced30f5e354b3a62c040a790a41548382 (diff)
downloadnextcloud-server-946fccc0dd5b7e51203d51fd2c60161cad7050ba.tar.gz
nextcloud-server-946fccc0dd5b7e51203d51fd2c60161cad7050ba.zip
Remove unused template variable assignment of files_sharing/template/public.php
Diffstat (limited to 'apps/files_sharing/public.php')
-rw-r--r--apps/files_sharing/public.php5
1 files changed, 0 insertions, 5 deletions
diff --git a/apps/files_sharing/public.php b/apps/files_sharing/public.php
index fc716a514b4..f03ac7205a3 100644
--- a/apps/files_sharing/public.php
+++ b/apps/files_sharing/public.php
@@ -144,15 +144,12 @@ if (isset($path)) {
OCP\Util::addScript('files', 'jquery.fileupload');
$maxUploadFilesize=OCP\Util::maxUploadFilesize($path);
$tmpl = new OCP\Template('files_sharing', 'public', 'base');
- $tmpl->assign('uidOwner', $shareOwner);
$tmpl->assign('displayName', \OCP\User::getDisplayName($shareOwner));
$tmpl->assign('filename', $file);
$tmpl->assign('directory_path', $linkItem['file_target']);
$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 (OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes') === 'no') {
$allowPublicUploadEnabled = false;
@@ -160,8 +157,6 @@ if (isset($path)) {
if ($linkItem['item_type'] !== 'folder') {
$allowPublicUploadEnabled = false;
}
- $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
- $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$urlLinkIdentifiers= (isset($token)?'&t='.$token:'')
.(isset($_GET['dir'])?'&dir='.$_GET['dir']:'')