summaryrefslogtreecommitdiff
path: root/inc/fulltext.php
diff options
context:
space:
mode:
authorGerrit Uitslag <klapinklapin@gmail.com>2014-07-30 14:38:24 +0200
committerGerrit Uitslag <klapinklapin@gmail.com>2014-07-30 14:38:24 +0200
commitecebd72f127152f005618420821a268ce18e826a (patch)
tree80bb3de5c124bf350026e4d48b0b2bbb929657d3 /inc/fulltext.php
parent22db8df7a2f043e38437a49bb327354b2a296bf0 (diff)
downloadrpg-ecebd72f127152f005618420821a268ce18e826a.tar.gz
rpg-ecebd72f127152f005618420821a268ce18e826a.tar.bz2
improve qsearch suggestions
* support namespaces with more then one level e.g. @your:namespace * support ns:<ns> as well
Diffstat (limited to 'inc/fulltext.php')
-rw-r--r--inc/fulltext.php2
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);
}