summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
diff options
context:
space:
mode:
authorLukas Reschke <lukas@owncloud.com>2015-02-24 19:50:23 +0100
committerLukas Reschke <lukas@owncloud.com>2015-02-24 19:50:23 +0100
commit5bb0889b30e25c63108c5ab0bf5eb7e8d6d1acdb (patch)
tree87f7a7ff18ea583191b12dacf19a3cb9658e4430 /apps/files_sharing/lib
parent09a06e4f0a2d473e1dc3ea1d92fefc3cfa318d4d (diff)
downloadnextcloud-server-5bb0889b30e25c63108c5ab0bf5eb7e8d6d1acdb.tar.gz
nextcloud-server-5bb0889b30e25c63108c5ab0bf5eb7e8d6d1acdb.zip
Remove uneeded assignment
'files' is neither used in the controller or the template
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r--apps/files_sharing/lib/controllers/sharecontroller.php2
1 files changed, 0 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/controllers/sharecontroller.php b/apps/files_sharing/lib/controllers/sharecontroller.php
index d1aeea82d0d..b15823ce610 100644
--- a/apps/files_sharing/lib/controllers/sharecontroller.php
+++ b/apps/files_sharing/lib/controllers/sharecontroller.php
@@ -195,7 +195,6 @@ class ShareController extends Controller {
// Show file list
if (Filesystem::is_dir($originalSharePath)) {
$shareTmpl['dir'] = $getPath;
- $files = array();
$maxUploadFilesize = Util::maxUploadFilesize($originalSharePath);
$freeSpace = Util::freeSpace($originalSharePath);
$uploadLimit = Util::uploadLimit();
@@ -205,7 +204,6 @@ class ShareController extends Controller {
$folder->assign('permissions', \OCP\Constants::PERMISSION_READ);
$folder->assign('isPublic', true);
$folder->assign('publicUploadEnabled', 'no');
- $folder->assign('files', $files);
$folder->assign('uploadMaxFilesize', $maxUploadFilesize);
$folder->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
$folder->assign('freeSpace', $freeSpace);