PARAM_TYPE is not set
* (bug 27712) add parent_id to list=deletedrevs
* (bug 28455) Add 'toponly' to recentchanges API module
+* (bug 26873) API: Add 'toponly' filter in usercontribs module
=== Languages updated in 1.18 ===
'type' => 'Which types of changes to show',
'limit' => 'How many total changes to return',
'tag' => 'Only list changes tagged with this tag',
- 'toponly' => 'Only list changes which are the latest revision'
+ 'toponly' => 'Only list changes which are the latest revision',
);
}
$this->prefixMode = false;
$this->multiUserMode = ( count( $this->params['user'] ) > 1 );
}
+
$this->prepareQuery();
// Do the actual query.
$index['change_tag'] = $wgOldChangeTagsIndex ? 'ct_tag' : 'change_tag_tag_id';
}
+ if ( $this->params['toponly'] ) {
+ $this->addWhere( 'rev_id = page_latest' );
+ }
+
$this->addOption( 'USE INDEX', $index );
}
)
),
'tag' => null,
+ 'toponly' => false,
);
}
'show' => array( "Show only items that meet this criteria, e.g. non minor edits only: {$p}show=!minor",
"NOTE: if {$p}show=patrolled or {$p}show=!patrolled is set, revisions older than $wgRCMaxAge won\'t be shown", ),
'tag' => 'Only list revisions tagged with this tag',
+ 'toponly' => 'Only list changes which are the latest revision',
);
}