From 29657f9e5c8571bcaf2889d79cd5dac4bbca5f42 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 4 Oct 2009 12:22:49 +0200 Subject: Fix images in PHP 5.3 FS#1737 Ignore-this: 962f03953a4d1c87fe4b7394eab4f3b darcs-hash:20091004102249-7ad00-b4996e91841f3513cadf10ca81333bcfe548fd45.gz --- inc/parser/xhtml.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'inc/parser') diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php index e67deacd6..75939531c 100644 --- a/inc/parser/xhtml.php +++ b/inc/parser/xhtml.php @@ -1058,7 +1058,10 @@ class Doku_Renderer_xhtml extends Doku_Renderer { global $conf; $isImage = false; - if ( is_null($title) || trim($title)=='') { + if ( is_array($title) ) { + $isImage = true; + return $this->_imageTitle($title); + } elseif ( is_null($title) || trim($title)=='') { if (useHeading($linktype) && $id) { $heading = p_get_first_heading($id,true); if ($heading) { @@ -1066,9 +1069,6 @@ class Doku_Renderer_xhtml extends Doku_Renderer { } } return $this->_xmlEntities($default); - } else if ( is_array($title) ) { - $isImage = true; - return $this->_imageTitle($title); } else { return $this->_xmlEntities($title); } -- cgit v1.2.3