From 6e38d921735908d9d6597c57e94e967e47770bf4 Mon Sep 17 00:00:00 2001
From: andi <andi@splitbrain.org>
Date: Wed, 27 Apr 2005 20:28:37 +0200
Subject: [PATCH] always use cache version for useheading

darcs-hash:20050427182837-9977f-c27ffa0d48b7592d1870da5dce3cf401a18d2476.gz
---
 inc/parserutils.php | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inc/parserutils.php b/inc/parserutils.php
index a9b425e60..3c7803b16 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];
       }
     }
   }
-- 
GitLab