diff options
-rw-r--r-- | inc/parser/xhtml.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index 662883416..3a66f1490 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -1671,11 +1671,11 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } elseif(media_supportedav($mime, 'video') || media_supportedav($mime, 'audio')) { // first get the $title - $title = !is_null($title) ? $this->_xmlEntities($title) : false; + $title = !is_null($title) ? $title : false; if(!$render) { // if the file is not supposed to be rendered // return the title of the file (just the sourcename if there is no title) - return $title ? $title : $this->_xmlEntities(\dokuwiki\Utf8\PhpString::basename(noNS($src))); + return $this->_xmlEntities($title ? $title : \dokuwiki\Utf8\PhpString::basename(noNS($src))); } $att = array(); |