From 630df86929570d503a906452f6322c361687afb4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Niklas=20Laxstr=C3=B6m?= Date: Tue, 2 Aug 2005 21:07:47 +0000 Subject: [PATCH] Make the Mysql search work --- includes/SearchMySQL.php | 2 +- includes/SpecialSearch.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/SearchMySQL.php b/includes/SearchMySQL.php index 304c714050..52f36e1bc2 100644 --- a/includes/SearchMySQL.php +++ b/includes/SearchMySQL.php @@ -86,7 +86,7 @@ class SearchMySQL extends SearchEngine { * @access private */ function queryLimit() { - return $this->db->limitResult( $this->limit, $this->offset ); + return $this->db->limitResult('', $this->limit, $this->offset ); } /** diff --git a/includes/SpecialSearch.php b/includes/SpecialSearch.php index 20948b96ae..fda21c322c 100644 --- a/includes/SpecialSearch.php +++ b/includes/SpecialSearch.php @@ -161,7 +161,7 @@ class SpecialSearch { return; } - $search =& SearchEngine::create(); + $search = SearchEngine::create(); $search->setLimitOffset( $this->limit, $this->offset ); $search->setNamespaces( $this->namespaces ); $titleMatches = $search->searchTitle( $term ); -- 2.20.1