Skip to content
Snippets Groups Projects
Commit 0c074a52 authored by Michael Hamann's avatar Michael Hamann
Browse files

Make ft_pageLookup respect the namespace restriction again

Before this change all pages of the given namespace have been included
in the result, now the search is restricted to the namespace again as it
was before the new indexer has been implemented.
parent 9bd92097
No related branches found
No related tags found
No related merge requests found
......@@ -241,11 +241,11 @@ function _ft_pageLookup(&$data){
}
}
}
if (isset($ns)) {
foreach ($page_idx as $p_id) {
if (strpos($p_id, $ns) === 0) {
if (!isset($pages[$p_id]))
$pages[$p_id] = p_get_first_heading($p_id, false);
foreach (array_keys($pages) as $p_id) {
if (strpos($p_id, $ns) !== 0) {
unset($pages[$p_id]);
}
}
}
......
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