* (bug 8157) Remove redirects from Special:Unusedtemplates. Patch by WebBoy.
* (bug 10721) Duplicate section anchors with differing case now disambiguated
for Internet Explorer's sake
+* (bug 13298) Tighter limits on Special:Newpages limits when embedding
=== API changes in 1.13 ===
/* int */ 'offset' => 0,
/* int */ 'limit' => 50,
);
+
+ if( $shownavigation ) {
+ // Some hopefully reasonable limits...
+ $max = array(
+ /* int */ 'offset' => 5000,
+ /* int */ 'limit' => 500,
+ );
+ } else {
+ // Embedded? Be a lot more strict...
+ $max = array(
+ /* int */ 'offset' => 0,
+ /* int */ 'limit' => 200,
+ );
+ }
$options = $defaults;
if ( $options['limit'] <= 0 ) {
$options['limit'] = $defaults['limit'];
}
+ if ( $options['limit'] > $max['limit'] ) {
+ $options['limit'] = $max['limit'];
+ }
if ( $options['offset'] < 0 ) {
$options['offset'] = $defaults['offset'];
}
+ if ( $options['offset'] > $max['offset'] ) {
+ $options['offset'] = $max['offset'];
+ }
$nondefaults = array();
foreach ( $options as $v => $t ) {