diff options
author | Robin Getz <robin.getz@analog.com> | 2013-01-09 21:09:42 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2013-01-09 21:10:17 +0100 |
commit | ffb060ea6b02211074dfc314f8651936065b3f7f (patch) | |
tree | 9240dbda74102aa63164a2edbfb0259ff3b51d3e /inc/parser | |
parent | 7eaa7703a43b9f22f12be04e8580a3f2515fb146 (diff) | |
download | rpg-ffb060ea6b02211074dfc314f8651936065b3f7f.tar.gz rpg-ffb060ea6b02211074dfc314f8651936065b3f7f.tar.bz2 |
show filesize of local file links in tooltip
Diffstat (limited to 'inc/parser')
-rw-r--r-- | inc/parser/xhtml.php | 1 |
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; |