summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-03-10 07:19:39 -0800
committerAndreas Gohr <andi@splitbrain.org>2012-03-10 07:19:39 -0800
commit70f8c497b285679b9e4450e496b717ccc409af03 (patch)
treeff70e1b4ae015b9b3e7d74b011a4f72891ff04fc
parent9189204ab4405b5698d7a4f13131a7a2d6e9d2fe (diff)
parent20f04039e631c2cfd34d22e124d2b9d9b94a19d6 (diff)
downloadrpg-70f8c497b285679b9e4450e496b717ccc409af03.tar.gz
rpg-70f8c497b285679b9e4450e496b717ccc409af03.tar.bz2
Merge pull request #71 from danny0838/master
Rework for 2 missing commits
-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 136c37531..8bfdc3b9c 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,METADATA_DONT_RENDER);
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 8d1eb24c1..4345b494f 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();