summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2006-06-18 13:35:32 +0200
committerAndreas Gohr <andi@splitbrain.org>2006-06-18 13:35:32 +0200
commit796bafb3af11c7e4722b0053c663919808740953 (patch)
tree4836ed5823f246fd9ce9ed53374a7a050dd58f64 /inc/parserutils.php
parent1808c8dab0847f1c4b85b16d3d9544497e1c53a2 (diff)
downloadrpg-796bafb3af11c7e4722b0053c663919808740953.tar.gz
rpg-796bafb3af11c7e4722b0053c663919808740953.tar.bz2
updated hierarchical breadcrumbs
Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index f2fe0ea48..dc6fe4fb9 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -482,9 +482,12 @@ function p_render($mode,$instructions,& $info){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function p_get_first_heading($id){
+ global $conf;
+ if(!$conf['useheading']) return null;
+
$meta = p_get_metadata($id);
if($meta['title']) return $meta['title'];
- return NULL;
+ return null;
}
//Setup VIM: ex: et ts=2 enc=utf-8 :