summaryrefslogtreecommitdiff
path: root/inc/parser
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2011-02-06 20:08:34 +0100
committerAndreas Gohr <andi@splitbrain.org>2011-02-06 20:08:34 +0100
commitf99be39c448b1ad4bac28c3c2376ab8f8e7edf45 (patch)
tree7f2e9f01924f0cd4f821830d3baa0ea490503142 /inc/parser
parenta8a3aa33b73d21c50ce7aa202a6eff90a5ffc588 (diff)
parent08162f005f3ced0555de590dc1a53155af99d998 (diff)
downloadrpg-f99be39c448b1ad4bac28c3c2376ab8f8e7edf45.tar.gz
rpg-f99be39c448b1ad4bac28c3c2376ab8f8e7edf45.tar.bz2
Merge remote branch 'danny0838/master' into danny
Diffstat (limited to 'inc/parser')
-rw-r--r--inc/parser/metadata.php8
-rw-r--r--inc/parser/xhtml.php2
2 files changed, 5 insertions, 5 deletions
diff --git a/inc/parser/metadata.php b/inc/parser/metadata.php
index fc2c8cbc5..bd396e2b4 100644
--- a/inc/parser/metadata.php
+++ b/inc/parser/metadata.php
@@ -455,16 +455,16 @@ class Doku_Renderer_metadata extends Doku_Renderer {
global $conf;
$isImage = false;
- if (is_null($title)){
+ if (is_array($title)){
+ if($title['title']) return '['.$title['title'].']';
+ } else if (is_null($title) || trim($title)==''){
if (useHeading('content') && $id){
$heading = p_get_first_heading($id,false);
if ($heading) return $heading;
}
return $default;
- } else if (is_string($title)){
+ } else {
return $title;
- } else if (is_array($title)){
- if($title['title']) return '['.$title['title'].']';
}
}
diff --git a/inc/parser/xhtml.php b/inc/parser/xhtml.php
index 9405d9420..b502b4f6b 100644
--- a/inc/parser/xhtml.php
+++ b/inc/parser/xhtml.php
@@ -29,7 +29,7 @@ class Doku_Renderer_xhtml extends Doku_Renderer {
var $doc = ''; // will contain the whole document
var $toc = array(); // will contain the Table of Contents
- private $sectionedits = array(); // A stack of section edit data
+ var $sectionedits = array(); // A stack of section edit data
var $headers = array();
var $footnotes = array();