summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-12-02 17:48:26 +0100
committerAndreas Gohr <andi@splitbrain.org>2006-12-02 17:48:26 +0100
commit0f428d7d21126098f07d9edc165485c4e46b1269 (patch)
treef0f6669030bcd647b0ccfeb5f4765402c8a9c17b /inc/parser
parent58912dfb6c5fe7605cd6700b2908e7425d4bed68 (diff)
downloadrpg-0f428d7d21126098f07d9edc165485c4e46b1269.tar.gz
rpg-0f428d7d21126098f07d9edc165485c4e46b1269.tar.bz2
fixed display for file links with empty title #996
darcs-hash:20061202164826-7ad00-279df5b15e663daf8a1a6c170d644b51fbc4e005.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php4
1 files changed, 2 insertions, 2 deletions
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"></embed>'.DOKU_LF;
$ret .= '</object>'.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;