Skip to content
Snippets Groups Projects
Commit 5ca4a8a1 authored by Adrian Lang's avatar Adrian Lang
Browse files

Find start pages if namespace matches

parent 80423ab6
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment