From: Niklas Laxström Date: Tue, 2 Aug 2005 21:07:47 +0000 (+0000) Subject: Make the Mysql search work X-Git-Tag: 1.6.0~2071 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=630df86929570d503a906452f6322c361687afb4;p=lhc%2Fweb%2Fwiklou.git Make the Mysql search work --- 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 );