summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2011-02-02 22:41:58 +0100
committerMichael Hamann <michael@content-space.de>2011-02-02 22:41:58 +0100
commit89b8c518c85b307953db1a78ae207884375c14a0 (patch)
tree88d39e18c0e8d39a0845d25a84fdbb090f476bc9 /inc/fulltext.php
parentfc756e0d4d88b37c01a9155e675a549430b00593 (diff)
parentf078bb0088870b4b68b348d546afa30a80a07e87 (diff)
downloadrpg-89b8c518c85b307953db1a78ae207884375c14a0.tar.gz
rpg-89b8c518c85b307953db1a78ae207884375c14a0.tar.bz2
Merge remote-tracking branch 'my-fork/master' into indexer_improvements
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php
index 805da2e37..1a525f743 100644
--- a/inc/fulltext.php
+++ b/inc/fulltext.php
@@ -130,7 +130,6 @@ function ft_backlinks($id){
$result = array();
$result = idx_get_indexer()->lookupKey('relation_references', $id);
- $result = $result[$id];
if(!count($result)) return $result;
@@ -234,8 +233,12 @@ function _ft_pageLookup(&$data){
$pages[$p_id] = p_get_first_heading($p_id, false);
}
}
- //if ($in_title)
- // $titles = $Indexer->lookupKey('title', "*$id*");
+ if ($in_title) {
+ foreach ($Indexer->lookupKey('title', "*$id*") as $p_id) {
+ if (!isset($pages[$p_id]))
+ $pages[$p_id] = p_get_first_heading($p_id, false);
+ }
+ }
}
if (isset($ns)) {
foreach ($page_idx as $p_id) {