Skip to content
Snippets Groups Projects
Commit 9d209ab8 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

Merge pull request #821 from splitbrain/searchns

improve qsearch suggestions
parents c3c7c422 ecebd72f
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ function ft_pageLookup($id, $in_ns=false, $in_title=false){
function _ft_pageLookup(&$data){
// split out original parameters
$id = $data['id'];
if (preg_match('/(?:^| )@(\w+)/', $id, $matches)) {
if (preg_match('/(?:^| )(?:@|ns:)([\w:]+)/', $id, $matches)) {
$ns = cleanID($matches[1]) . ':';
$id = str_replace($matches[0], '', $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