summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2009-10-04 12:22:49 +0200
committerAndreas Gohr <andi@splitbrain.org>2009-10-04 12:22:49 +0200
commit29657f9e5c8571bcaf2889d79cd5dac4bbca5f42 (patch)
treef6187c513722664190a46fdf1f1dc8ef0223ae87 /inc/parser
parent1698b9830067b19b9f38c5956857b46107ae62b0 (diff)
downloadrpg-29657f9e5c8571bcaf2889d79cd5dac4bbca5f42.tar.gz
rpg-29657f9e5c8571bcaf2889d79cd5dac4bbca5f42.tar.bz2
Fix images in PHP 5.3 FS#1737
Ignore-this: 962f03953a4d1c87fe4b7394eab4f3b darcs-hash:20091004102249-7ad00-b4996e91841f3513cadf10ca81333bcfe548fd45.gz
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/xhtml.php8
1 files changed, 4 insertions, 4 deletions
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);
}