diff --git a/inc/parserutils.php b/inc/parserutils.php index a9b425e609ae77cd3fb200e1690c0e86e9c143a6..3c7803b162e966b3397771ef2d437c7431bbbbbd 100644 --- a/inc/parserutils.php +++ b/inc/parserutils.php @@ -260,10 +260,10 @@ function p_render($mode,$instructions){ function p_get_first_heading($id){ $file = wikiFN($id); if (@file_exists($file)) { - $instructions = p_cached_instructions($file); + $instructions = p_cached_instructions($file,true); foreach ( $instructions as $instruction ) { if ($instruction[0] == 'header') { - return $instruction[1][0]; + return $instruction[1][0]; } } }