Make the Mysql search work
authorNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 2 Aug 2005 21:07:47 +0000 (21:07 +0000)
committerNiklas Laxström <nikerabbit@users.mediawiki.org>
Tue, 2 Aug 2005 21:07:47 +0000 (21:07 +0000)
includes/SearchMySQL.php
includes/SpecialSearch.php

index 304c714..52f36e1 100644 (file)
@@ -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 );
        }
 
        /**
index 20948b9..fda21c3 100644 (file)
@@ -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 );