diff options
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; |