summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2005-09-12 16:10:42 +0200
committerAndreas Gohr <andi@splitbrain.org>2005-09-12 16:10:42 +0200
commit54f4c05648c376908a736854a2ad279d57ec5b19 (patch)
tree06dc8c0c3ec0124f9aed947b32afa46e21397d6e /inc/html.php
parent6793fe33b8906da93fc2354dc1f3346957492295 (diff)
downloadrpg-54f4c05648c376908a736854a2ad279d57ec5b19.tar.gz
rpg-54f4c05648c376908a736854a2ad279d57ec5b19.tar.bz2
backlinks now use the new index based search
darcs-hash:20050912141042-7ad00-5ef43525c9fd7ba44206720c54bb566450f93250.gz
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php18
1 files changed, 4 insertions, 14 deletions
diff --git a/inc/html.php b/inc/html.php
index 6797d0467..7c4e62cda 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -668,28 +668,18 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
* @author Andreas Gohr <andi@splitbrain.org>
*/
function html_backlinks(){
- require_once(DOKU_INC.'inc/search.php');
+ require_once(DOKU_INC.'inc/fulltext.php');
global $ID;
global $conf;
- if(preg_match('#^(.*):(.*)$#',$ID,$matches)){
- $opts['ns'] = $matches[1];
- $opts['name'] = $matches[2];
- }else{
- $opts['ns'] = '';
- $opts['name'] = $ID;
- }
-
print p_locale_xhtml('backlinks');
- $data = array();
- search($data,$conf['datadir'],'search_backlinks',$opts);
- sort($data);
+ $data = ft_backlinks($ID);
print '<ul class="idx">';
- foreach($data as $row){
+ foreach($data as $blink){
print '<li>';
- print html_wikilink(':'.$row['id'],$conf['useheading']?NULL:$row['id']);
+ print html_wikilink(':'.$blink,$conf['useheading']?NULL:$blink);
print '</li>';
}
print '</ul>';