summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorRobin Getz <robin.getz@analog.com>2013-01-09 21:09:42 +0100
committerAndreas Gohr <andi@splitbrain.org>2013-01-09 21:10:17 +0100
commitffb060ea6b02211074dfc314f8651936065b3f7f (patch)
tree9240dbda74102aa63164a2edbfb0259ff3b51d3e /inc
parent7eaa7703a43b9f22f12be04e8580a3f2515fb146 (diff)
downloadrpg-ffb060ea6b02211074dfc314f8651936065b3f7f.tar.gz
rpg-ffb060ea6b02211074dfc314f8651936065b3f7f.tar.bz2
show filesize of local file links in tooltip
Diffstat (limited to 'inc')
-rw-r--r--inc/parser/xhtml.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 68b92ca43..71f3aa4bf 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -803,6 +803,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
$class = preg_replace('/[^_\-a-z0-9]+/i','_',$ext);
$link['class'] .= ' mediafile mf_'.$class;
$link['url'] = ml($src,array('id'=>$ID,'cache'=>$cache),true);
+ $link['title'] .= ' (' . filesize_h(filesize(mediaFN($src))).')';
}
if($hash) $link['url'] .= '#'.$hash;