=== Action API changes in 1.27 ===
* Added list=allrevisions.
+* generator=recentchanges now has the option to generate revids.
=== Action API internal changes in 1.27 ===
regularly. Below only new and removed languages are listed, as well as
changes to languages because of Bugzilla reports.
-
=== Other changes in 1.27 ===
-
== Compatibility ==
MediaWiki 1.27 requires PHP 5.3.3 or later. There is experimental support for
$showRedirects = $this->fld_redirect || isset( $show['redirect'] )
|| isset( $show['!redirect'] );
}
+ $this->addFieldsIf( array( 'rc_this_oldid' ),
+ $resultPageSet && $params['generaterevisions'] );
if ( $this->fld_tags ) {
$this->addTables( 'tag_summary' );
/* Perform the actual query. */
$res = $this->select( __METHOD__ );
+ $revids = array();
$titles = array();
$result = $this->getResult();
$this->setContinueEnumParameter( 'continue', "$row->rc_timestamp|$row->rc_id" );
break;
}
+ } elseif ( $params['generaterevisions'] ) {
+ $revid = (int)$row->rc_this_oldid;
+ if ( $revid > 0 ) {
+ $revids[] = $revid;
+ }
} else {
$titles[] = Title::makeTitle( $row->rc_namespace, $row->rc_title );
}
if ( is_null( $resultPageSet ) ) {
/* Format the result */
$result->addIndexedTagName( array( 'query', $this->getModuleName() ), 'rc' );
+ } elseif ( $params['generaterevisions'] ) {
+ $resultPageSet->populateFromRevisionIDs( $revids );
} else {
$resultPageSet->populateFromTitles( $titles );
}
'continue' => array(
ApiBase::PARAM_HELP_MSG => 'api-help-param-continue',
),
+ 'generaterevisions' => false,
);
}
"apihelp-query+recentchanges-param-limit": "How many total changes to return.",
"apihelp-query+recentchanges-param-type": "Which types of changes to show.",
"apihelp-query+recentchanges-param-toponly": "Only list changes which are the latest revision.",
+ "apihelp-query+recentchanges-param-generaterevisions": "When being used as a generator, generate revision IDs rather than titles. Recent change entries without associated revision IDs (e.g. most log entries) will generate nothing.",
"apihelp-query+recentchanges-example-simple": "List recent changes.",
"apihelp-query+recentchanges-example-generator": "Get page info about recent unpatrolled changes.",
"apihelp-query+recentchanges-param-limit": "{{doc-apihelp-param|query+recentchanges|limit}}",
"apihelp-query+recentchanges-param-type": "{{doc-apihelp-param|query+recentchanges|type}}",
"apihelp-query+recentchanges-param-toponly": "{{doc-apihelp-param|query+recentchanges|toponly}}",
+ "apihelp-query+recentchanges-param-generaterevisions": "{{doc-apihelp-param|query+recentchanges|generaterevisions}}",
"apihelp-query+recentchanges-example-simple": "{{doc-apihelp-example|query+recentchanges}}",
"apihelp-query+recentchanges-example-generator": "{{doc-apihelp-example|query+recentchanges}}",
"apihelp-query+redirects-description": "{{doc-apihelp-description|query+redirects}}",