From 6ef7197027e6c2f3fa521634d6fa93da2e19392a Mon Sep 17 00:00:00 2001 From: Adrian Lang <lang@cosmocode.de> Date: Fri, 8 Oct 2010 17:08:54 +0200 Subject: [PATCH] Fix page name lookup in search The page name lookup only checked whether the namespace part occured in the page name and dropped all other search criteria. Moreover, cleaning is not necessary anymore as ft_pageLookup does this itself. --- inc/html.php | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/inc/html.php b/inc/html.php index 968a63e4e..02afa00e9 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>'; -- GitLab