4 Jun 2012 15:50
Get the number of the revision when deleting a file attachment?
nguyenkim thuat <kimthuatnguyenensimagfr <at> gmail.com>
2012-06-04 13:50:43 GMT
2012-06-04 13:50:43 GMT
Hi,
When deleting a file attachment via the Mediawiki::API->edit, how to get the revision number at that moment?
For example, when i upload a file, i can find it by the query:
# Find the number of revision of the page which has the id="$id"
my $query = {
action => 'query',
prop => 'revisions',
rvprop => 'ids',
pageids => $id,
};
my $result = $mediawiki->api($query);
..........................................................................
But, when deleting a file, we can't use this mechanism. I wonder if the API support a function to get this number of revision?
Thanks.
_______________________________________________ Mediawiki-api mailing list Mediawiki-api <at> lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api
RSS Feed