]> source.dussan.org Git - nextcloud-server.git/commitdiff
$file only contains the filename and not the absolute path, that means that files...
authorLukas Reschke <lukas@owncloud.com>
Tue, 18 Nov 2014 16:14:26 +0000 (17:14 +0100)
committerLukas Reschke <lukas@owncloud.com>
Tue, 18 Nov 2014 16:14:26 +0000 (17:14 +0100)
This feature only exists on master.

apps/files_sharing/lib/controllers/sharecontroller.php

index a3d5b6d44a0bf0971c5a6724b38ee21f36440e88..e5fd0f401c253aa349f6df8dfb91de60fe8003c4 100644 (file)
@@ -173,7 +173,7 @@ class ShareController extends Controller {
                $shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled();
                $shareTmpl['protected'] = isset($linkItem['share_with']) ? 'true' : 'false';
                $shareTmpl['dir'] = $dir;
-               $shareTmpl['fileSize'] = \OCP\Util::humanFileSize(\OC\Files\Filesystem::filesize($file));
+               $shareTmpl['fileSize'] = \OCP\Util::humanFileSize(\OC\Files\Filesystem::filesize($originalSharePath));
 
                // Show file list
                if (Filesystem::is_dir($originalSharePath)) {