* (bug 11296) Temporary fix for escaping of ampersands inside links in pretty-printed
help document.
* (bug 11405) Expand templates implementation in the API
+* (bug 11218) Add option to feedwatchlist to display multiple revisions for each page.
=== Languages updated in 1.12 ===
// limit to the number of hours going from now back
$endTime = wfTimestamp(TS_MW, time() - intval($params['hours'] * 60 * 60));
- // Prepare nested request
- $fauxReq = new FauxRequest(array (
+ // Prepare parameters for nested request
+ $fauxReqArr = array (
'action' => 'query',
'meta' => 'siteinfo',
'siprop' => 'general',
'wldir' => 'older', // reverse order - from newest to oldest
'wlend' => $endTime, // stop at this time
'wllimit' => 50
- ));
+ );
+
+ // Check for 'allrev' parameter, and if found, show all revisions to each page on wl.
+ if ( ! is_null ( $params['allrev'] ) ) $fauxReqArr['wlallrev'] = '';
+
+ // Create the request
+ $fauxReq = new FauxRequest ( $fauxReqArr );
// Execute
$module = new ApiMain($fauxReq);
ApiBase :: PARAM_TYPE => 'integer',
ApiBase :: PARAM_MIN => 1,
ApiBase :: PARAM_MAX => 72,
- )
+ ),
+ 'allrev' => null
);
}
protected function getParamDescription() {
return array (
'feedformat' => 'The format of the feed',
- 'hours' => 'List pages modified within this many hours from now'
+ 'hours' => 'List pages modified within this many hours from now',
+ 'allrev' => 'Include multiple revisions of the same page within given timeframe.'
);
}