diff options
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r-- | inc/parserutils.php | 5 |
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 : |