Subject: | List all pages seem broken |
Date: | Tue, 13 Jan 2009 11:47:01 +0000 |
To: | bug-MediaWiki-API [...] rt.cpan.org |
From: | Dan Bolser <dan.bolser [...] gmail.com> |
Sorry I can't provide more details, but the following script (on my
system) fails to produce any results:
#!/usr/bin/perl -w
use strict;
use MediaWiki::API;
my $mw = MediaWiki::API->new();
$mw->{config}->{on_error} = \&on_error;
sub on_error {
print "Error code: " . $mw->{error}->{code} . "\n";
print $mw->{error}->{details}. "\n";
die;
}
$mw->{config}->{api_url} =
'http://en.wikipedia.org/w/api.php';
my $articles =
$mw->list( { action => 'query',
list => ' allpages',
} );
print $articles, "\n";
I just get '0' !
Using latest CPAN version of MediaWiki::API (MediaWiki-API-0.23).
Other queries seem to work fine.