diff --git a/inc/html.php b/inc/html.php index 968a63e4e30cd7eb01dcc0ce71895bfd50498eb4..02afa00e97714ce038a650c7a2df94e6e539035e 100644 --- a/inc/html.php +++ b/inc/html.php @@ -319,13 +319,6 @@ 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]); - } else { - $id = cleanID($QUERY); - } - //show progressbar print '<div class="centeralign" id="dw__loading">'.NL; print '<script type="text/javascript" charset="utf-8"><!--//--><![CDATA[//><!--'.NL; @@ -337,7 +330,7 @@ function html_search(){ //do quick pagesearch $data = array(); - if($id) $data = ft_pageLookup($id,true,useHeading('navigation')); + $data = ft_pageLookup($QUERY,true,useHeading('navigation')); if(count($data)){ print '<div class="search_quickresult">'; print '<h3>'.$lang['quickhits'].':</h3>';