Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
3b0a7574
Commit
3b0a7574
authored
Nov 18, 2014
by
Lukas Reschke
Browse files
Merge pull request #12264 from owncloud/use-full-path-for-filesize-calculation
Use full path instead of only the filename
parents
106d0f9c
1b85f40c
Changes
1
Hide whitespace changes
Inline
Side-by-side
apps/files_sharing/lib/controllers/sharecontroller.php
View file @
3b0a7574
...
...
@@ -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
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment