diff options
Diffstat (limited to 'inc/html.php')
-rw-r--r-- | inc/html.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/inc/html.php b/inc/html.php index 6d0b7e116..928da9cef 100644 --- a/inc/html.php +++ b/inc/html.php @@ -365,6 +365,18 @@ function html_search(){ print p_locale_xhtml('searchpage'); flush(); + //check if search is restricted to namespace + if(preg_match('/([^@]*)@([^@]*)/',$QUERY,$match)) { + $id = cleanID($match[1]); + if(empty($id)) { + print '<div class="nothing">'.$lang['nothingfound'].'</div>'; + flush(); + return; + } + } else { + $id = cleanID($QUERY); + } + //show progressbar print '<div class="centeralign" id="dw__loading">'; print '<br /></div>'; @@ -375,7 +387,8 @@ function html_search(){ //do quick pagesearch $data = array(); - $data = ft_pageLookup(cleanID($QUERY)); + + $data = ft_pageLookup($id); if(count($data)){ sort($data); print '<div class="search_quickresult">'; |