Don't override limits and offsets in SearchEngine::create()
authorChad Horohoe <chadh@wikimedia.org>
Mon, 27 Jan 2014 16:52:47 +0000 (08:52 -0800)
committerChad Horohoe <chadh@wikimedia.org>
Mon, 27 Jan 2014 16:55:40 +0000 (08:55 -0800)
The class default is 10/0, it doesn't make sense to set that
as 0/0 here. Nor does it make sense to really override it
here at all, as class defaults should take precedent unless
explicitly overriden by callers.

Bug: 60475
Change-Id: I4a48fd3c55908b52c8b0ab081d856874d16b876e

includes/search/SearchEngine.php

index 33fcd8c..2b149cd 100644 (file)
@@ -472,7 +472,6 @@ class SearchEngine {
                }
 
                $search = new $class( $dbr );
-               $search->setLimitOffset( 0, 0 );
                return $search;
        }