diff options
author | chris <chris@teacherscpd.co.uk> | 2005-06-05 15:29:31 +0200 |
---|---|---|
committer | chris <chris@teacherscpd.co.uk> | 2005-06-05 15:29:31 +0200 |
commit | 871eff02dcf51063990aea2919b2dd290c360232 (patch) | |
tree | 066f2c35f5eecb751c14d4580a07396308c3445a | |
parent | b1a72e3d1084e1057df9ef13611c51c29c3e5eaa (diff) | |
download | rpg-871eff02dcf51063990aea2919b2dd290c360232.tar.gz rpg-871eff02dcf51063990aea2919b2dd290c360232.tar.bz2 |
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
-rw-r--r-- | inc/html.php | 8 |
1 files 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>'; |