Merge pull request #12264 from owncloud/use-full-path-for-filesize-calculation
Use full path instead of only the filename
This commit is contained in:
commit
3b0a7574d6
|
@ -173,7 +173,7 @@ class ShareController extends Controller {
|
||||||
$shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled();
|
$shareTmpl['server2serversharing'] = Helper::isOutgoingServer2serverShareEnabled();
|
||||||
$shareTmpl['protected'] = isset($linkItem['share_with']) ? 'true' : 'false';
|
$shareTmpl['protected'] = isset($linkItem['share_with']) ? 'true' : 'false';
|
||||||
$shareTmpl['dir'] = $dir;
|
$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
|
// Show file list
|
||||||
if (Filesystem::is_dir($originalSharePath)) {
|
if (Filesystem::is_dir($originalSharePath)) {
|
||||||
|
|
Loading…
Reference in New Issue