diff options
author | chris <chris@jalakai.co.uk> | 2006-09-01 02:20:16 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-09-01 02:20:16 +0200 |
commit | 3be6e3945ae175b4785e18f9aa9d18f557592dd7 (patch) | |
tree | d60fa7478464afd69b64b3c399cc954347f25e70 /inc/fulltext.php | |
parent | 0e70946d23660c4814db46cd3f89cb8340e51336 (diff) | |
download | rpg-3be6e3945ae175b4785e18f9aa9d18f557592dd7.tar.gz rpg-3be6e3945ae175b4785e18f9aa9d18f557592dd7.tar.bz2 |
update backlink search to use metadata
darcs-hash:20060901002016-9b6ab-716518138edf541a869510d7c2934b9474547fc3.gz
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index 280ba0c89..94cc947e7 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -118,6 +118,8 @@ function ft_backlinks($id){ // check instructions for matching links foreach($docs as $match){ +/* + // orig code, examine each page's instruction list $instructions = p_cached_instructions(wikiFN($match),true); if(is_null($instructions)) continue; @@ -134,6 +136,10 @@ function ft_backlinks($id){ } } } +*/ +// now with metadata + $links = p_get_metadata($match,"relation references"); + if (isset($links[$id])) $result[] = $match; } if(!count($result)) return $result; |