From 3a362d41cb4f410b067bc7c19b9a8ea90f25fc44 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 29 Jul 2004 01:49:49 +0000 Subject: [PATCH] Fix inoperable search engine --- includes/SearchEngine.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SearchEngine.php b/includes/SearchEngine.php index df71975c62..8c110460ff 100644 --- a/includes/SearchEngine.php +++ b/includes/SearchEngine.php @@ -170,7 +170,8 @@ class SearchEngine { wfMsg( "searchhelppage" ), wfMsg( "searchingwikipedia" ) ) ); $wgOut->addHTML( $header ); - $this->parseQuery(); + $dbr =& wfGetDB( DB_SLAVE ); + $this->parseQuery( $dbr ); if ( "" == $this->mTitlecond || "" == $this->mTextcond ) { $wgOut->addHTML( "

" . wfMsg( "badquery" ) . "

\n" . "

" . wfMsg( "badquerytext" ) . "

\n" ); @@ -180,7 +181,6 @@ class SearchEngine { $searchnamespaces = $this->queryNamespaces(); $redircond = $this->searchRedirects(); - $dbr =& wfGetDB( DB_SLAVE ); $searchindex = $dbr->tableName( 'searchindex' ); $cur = $dbr->tableName( 'cur' ); -- 2.20.1