diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-06-16 16:15:28 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-06-16 16:16:05 +0200 |
commit | a0070b52bbd24f6972b819fa8ff4bdbfe81b5bbc (patch) | |
tree | 08dd3143a5c47dd406e02c474ff72fb5b62d0bab /inc/fulltext.php | |
parent | 159ef5962053a685e348239dfa0b3648ed516962 (diff) | |
download | rpg-a0070b52bbd24f6972b819fa8ff4bdbfe81b5bbc.tar.gz rpg-a0070b52bbd24f6972b819fa8ff4bdbfe81b5bbc.tar.bz2 |
Add title index to the indexer files, improve indexer calls
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index a68770277..b6aac5c91 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -233,9 +233,8 @@ function _ft_pageLookup(&$data){ $in_ns = !$data['not_in_ns']; $in_title = !$data['not_in_title']; - global $conf; - $pages = array_map('rtrim', file($conf['indexdir'].'/page.idx')); - $titles = array_map('rtrim', file($conf['indexdir'].'/title.idx')); + $pages = array_map('rtrim', idx_getIndex('page', '')); + $titles = array_map('rtrim', idx_getIndex('title', '')); $pages = array_combine($pages, $titles); if($id !== '' && cleanID($id) !== '') { |