From 871eff02dcf51063990aea2919b2dd290c360232 Mon Sep 17 00:00:00 2001 From: chris Date: Sun, 5 Jun 2005 15:29:31 +0200 Subject: 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(-) (limited to 'inc') 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 ''.$lang[quickhits].':
'; foreach($data as $row){ print '
'; - print html_wikilink(':'.$row['id'],$row['id']); + print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id']); print '
'; } //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 '
'; - print html_wikilink(':'.$row['id'],$row['id'],$row['poswords']); + print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id'],$row['poswords']); print ': '.$row['count'].' '.$lang['hits'].'
'; print '
'.$row['snippet'].'
'; print '
'; @@ -445,7 +445,7 @@ function html_recent($first=0){ print ''; print ' '; - print html_wikilink($id,$id); + print html_wikilink($id,$conf['useheading']?NULL:$id); print ' '.htmlspecialchars($recents[$id]['sum']); print ' '; @@ -633,7 +633,7 @@ function html_backlinks(){ print ''; -- cgit v1.2.3