API: Per rainman, mark list=search as an expensive query and lower its limits to...
authorRoan Kattouw <catrope@users.mediawiki.org>
Wed, 26 Aug 2009 21:13:06 +0000 (21:13 +0000)
committerRoan Kattouw <catrope@users.mediawiki.org>
Wed, 26 Aug 2009 21:13:06 +0000 (21:13 +0000)
includes/api/ApiQuerySearch.php

index 6d3422d..9827b47 100644 (file)
@@ -194,8 +194,8 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
                                ApiBase :: PARAM_DFLT => 10,
                                ApiBase :: PARAM_TYPE => 'limit',
                                ApiBase :: PARAM_MIN => 1,
-                               ApiBase :: PARAM_MAX => ApiBase :: LIMIT_BIG1,
-                               ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_BIG2
+                               ApiBase :: PARAM_MAX => ApiBase :: LIMIT_SML1,
+                               ApiBase :: PARAM_MAX2 => ApiBase :: LIMIT_SML2
                        )
                );
        }
@@ -228,4 +228,4 @@ class ApiQuerySearch extends ApiQueryGeneratorBase {
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
-}
\ No newline at end of file
+}