From 871eff02dcf51063990aea2919b2dd290c360232 Mon Sep 17 00:00:00 2001
From: chris <chris@teacherscpd.co.uk>
Date: Sun, 5 Jun 2005 15:29:31 +0200
Subject: [PATCH] Extending useheading

This patch will extend the useheading configuration setting to apply to
- search page
- backlinks page
- recent changes page

darcs-hash:20050605132931-50fdc-39bc6dfb55968fc68cb646a0f8cf2cbc56d3e12f.gz
---
 inc/html.php | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index ca1b02ce3..d972c1abb 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -291,7 +291,7 @@ function html_search(){
     print '<b>'.$lang[quickhits].':</b><br />';
     foreach($data as $row){
       print '<div class="search_quickhits">';
-      print html_wikilink(':'.$row['id'],$row['id']);
+      print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id']);
       print '</div> ';
     }
     //clear float (see http://www.complexspiral.com/publications/containing-floats/)
@@ -307,7 +307,7 @@ function html_search(){
     usort($data,'sort_search_fulltext');
     foreach($data as $row){
       print '<div class="search_result">';
-      print html_wikilink(':'.$row['id'],$row['id'],$row['poswords']);
+      print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id'],$row['poswords']);
       print ': <span class="search_cnt">'.$row['count'].' '.$lang['hits'].'</span><br />';
       print '<div class="search_snippet">'.$row['snippet'].'</div>';
       print '</div>';
@@ -445,7 +445,7 @@ function html_recent($first=0){
     print '<img src="'.DOKU_BASE.'lib/images/history.png" border="0" width="12" height="14" title="'.$lang['btn_revs'].'" />';
     print '</a> ';
 
-    print html_wikilink($id,$id);
+    print html_wikilink($id,$conf['useheading']?NULL:$id);
 
     print ' '.htmlspecialchars($recents[$id]['sum']);
     print ' <span class="user">';
@@ -633,7 +633,7 @@ function html_backlinks(){
   print '<ul class="idx">';
   foreach($data as $row){
     print '<li>';
-    print html_wikilink(':'.$row['id'],$row['id']);
+    print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id']);
     print '</li>';
   }
   print '</ul>';
-- 
GitLab