Merge "Add default type param for recentchanges and watchlist query api modules"
[lhc/web/wiklou.git] / includes / api / ApiQueryRecentChanges.php
index fd73afb..bfdc5ab 100644 (file)
@@ -688,6 +688,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
                                ApiBase::PARAM_MAX2 => ApiBase::LIMIT_BIG2
                        ),
                        'type' => array(
+                               ApiBase::PARAM_DFLT => 'edit|new|log',
                                ApiBase::PARAM_ISMULTI => true,
                                ApiBase::PARAM_TYPE => array(
                                        'edit',