diff options
author | Adrian Lang <lang@cosmocode.de> | 2010-06-16 15:50:06 +0200 |
---|---|---|
committer | Adrian Lang <lang@cosmocode.de> | 2010-06-16 15:50:06 +0200 |
commit | 5ca4a8a19425e432cff13aaef5eae897e153f320 (patch) | |
tree | 27198be4881f2dae4a884014a7ec1f1da2b85bb4 /inc/fulltext.php | |
parent | 80423ab626c72923f347e2196ce660957dcc216f (diff) | |
download | rpg-5ca4a8a19425e432cff13aaef5eae897e153f320.tar.gz rpg-5ca4a8a19425e432cff13aaef5eae897e153f320.tar.bz2 |
Find start pages if namespace matches
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r-- | inc/fulltext.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/fulltext.php b/inc/fulltext.php index c4d8a7ea7..a68770277 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -242,7 +242,7 @@ function _ft_pageLookup(&$data){ $cleaned = cleanID($id); $matched_pages = array(); foreach ($pages as $p_id => $p_title) { - if ((strpos($in_ns ? $p_id : noNS($p_id), $cleaned) !== false) || + if ((strpos($in_ns ? $p_id : noNSorNS($p_id), $cleaned) !== false) || ($in_title && stripos($p_title, $id) !== false)) { $matched_pages[$p_id] = $p_title; } |