From 796bafb3af11c7e4722b0053c663919808740953 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Sun, 18 Jun 2006 13:35:32 +0200 Subject: updated hierarchical breadcrumbs Third part of the global start series darcs-hash:20060618113532-7ad00-46a62cc819c41ead8a16bc3f6c6d1bf67d9c6bf4.gz --- inc/parserutils.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'inc/parserutils.php') 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 */ 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 : -- cgit v1.2.3