From 0f428d7d21126098f07d9edc165485c4e46b1269 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sat, 2 Dec 2006 17:48:26 +0100 Subject: fixed display for file links with empty title #996 darcs-hash:20061202164826-7ad00-279df5b15e663daf8a1a6c170d644b51fbc4e005.gz --- inc/parser/xhtml.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index ec5927b1f..1fadf02c7 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -1011,12 +1011,12 @@ class Doku_Renderer_xhtml extends Doku_Renderer { ' pluginspage="http://www.macromedia.com/go/getflashplayer">'.DOKU_LF; $ret .= ''.DOKU_LF; - }elseif(!is_null($title)){ + }elseif($title){ // well at least we have a title to display $ret .= $this->_xmlEntities($title); }else{ // just show the sourcename - $ret .= $this->_xmlEntities(noNS($src)); + $ret .= $this->_xmlEntities(basename(noNS($src))); } return $ret; -- cgit v1.2.3