diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-09-26 11:13:07 +0200 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-09-26 11:13:07 +0200 |
commit | 9d209ab87700c872fa85dcbee8623ad386190847 (patch) | |
tree | aeb9c11c3b12accc06a366e3783338f5d4b3fefa | |
parent | c3c7c422c0b6c95bd04bfa0a0db74a3fcac73edb (diff) | |
parent | ecebd72f127152f005618420821a268ce18e826a (diff) | |
download | rpg-9d209ab87700c872fa85dcbee8623ad386190847.tar.gz rpg-9d209ab87700c872fa85dcbee8623ad386190847.tar.bz2 |
Merge pull request #821 from splitbrain/searchns
improve qsearch suggestions
-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 dd918f214..aaef090e1 100644 --- a/inc/fulltext.php +++ b/inc/fulltext.php @@ -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); } |