summaryrefslogtreecommitdiff
path: root/inc/html.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-10-08 17:08:54 +0200
committerAdrian Lang <lang@cosmocode.de>2010-10-08 17:11:14 +0200
commit6ef7197027e6c2f3fa521634d6fa93da2e19392a (patch)
tree8d093d8d3d2e7783aea88f45dd941595487086f1 /inc/html.php
parent3175d0a295db2fb1b2f5fe3b346f57a24f2b8213 (diff)
downloadrpg-6ef7197027e6c2f3fa521634d6fa93da2e19392a.tar.gz
rpg-6ef7197027e6c2f3fa521634d6fa93da2e19392a.tar.bz2
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.
Diffstat (limited to 'inc/html.php')
-rw-r--r--inc/html.php9
1 files changed, 1 insertions, 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>';