summaryrefslogtreecommitdiff
path: root/inc/parserutils.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/parserutils.php')
-rw-r--r--inc/parserutils.php6
1 files changed, 1 insertions, 5 deletions
diff --git a/inc/parserutils.php b/inc/parserutils.php
index 4b3c8c209..17f1811ae 100644
--- a/inc/parserutils.php
+++ b/inc/parserutils.php
@@ -468,11 +468,7 @@ function p_render($mode,$instructions,& $info){
*/
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 $conf['useheading'] ? p_get_metadata($id,'title') : null;
}
/**