Sorry, i just have another question.

    Is it possible to download old versions of a file (image, pdf ..) with the function MediaWiki::API->download( $params_hashref )?  When I tried to call this function for example with filename '20120606205541!Test.txt' which is located in directory images/archive/  I got empty result. According to the documentation of the download function, it means the file doesn't exist on the MediaWiki.
"If the file does not exist (on the wiki) an empty string is returned. If the file is unable to be downloaded undef is returned."

Thanks.

On Thu, Jun 7, 2012 at 5:48 PM, nguyenkim thuat <kim-thuat.nguyen@ensimag.imag.fr> wrote:
Yeah,
 I tried to install this version, after installing all of the packages prerequise , and tape make install.
 it generate this line:

 Appending installation info to /usr/local/lib/perl/5.10.1/perllocal.pod

Nothing change, my version is still 0.33. Do i have to move the file API.pm in lib/Mediawiki to the folder /usr/shared/perl5/Mediawiki/API.pm?



On Thu, Jun 7, 2012 at 5:13 PM, Jools Wills <buzz@exotica.org.uk> wrote:

I'm using the version 0.33 of Mediawiki::API. So i need to upgrade it?

yes. 0.33 was released two years ago, before the mediawiki API had support for file uploads (1.16 which had this support was released a month or two after). 0.39 is on cpan.

http://search.cpan.org/~exobuzz/MediaWiki-API-0.39/

Best Regards

Jools


_______________________________________________
Mediawiki-api mailing list
Mediawiki-api@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api