summaryrefslogtreecommitdiff
path: root/inc
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-02-17 20:32:29 +0100
committerMichael Hamann <michael@content-space.de>2013-02-17 20:33:15 +0100
commit91328684db89e336404aff4644f8a53a1db64cad (patch)
tree0eeacadad2b7fd56fb6afd68f9488a05069344e0 /inc
parent47682a290a0f34e86784f52962a30f0a7673ab52 (diff)
downloadrpg-91328684db89e336404aff4644f8a53a1db64cad.tar.gz
rpg-91328684db89e336404aff4644f8a53a1db64cad.tar.bz2
Display media file size only if file exists (prevents PHP warning)
Diffstat (limited to 'inc')
-rw-r--r--inc/parser/xhtml.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 71f3aa4bf..4dd8c5e78 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -803,7 +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 ($exists) $link['title'] .= ' (' . filesize_h(filesize(mediaFN($src))).')';
}
if($hash) $link['url'] .= '#'.$hash;