Yeah, but, how can i do it, i think of doing some thing like: *sub get_file_extensions { mw_connect_maybe(); my $query = { action => 'query', meta => 'siteinfo', siprop => 'fileextensions' }; my $result = $mediawiki->api($query);
##### how to get the array of file extensions here? } * Best regards. On Thu, May 31, 2012 at 4:57 PM, Brad Jorsch <b-jor...@alum.northwestern.edu > wrote: > On Thu, May 31, 2012 at 11:10:30AM +0200, nguyenkim thuat wrote: > > > > *My question is if the user change the type of file supported in the * > > LocalSettings.php* , this programme is not true any more. > > How can i get the array *$wgFileExtensions* from the *LocalSettings.php*? > > Use meta=siteinfo&siprop=fileextensions. For example, > > https://en.wikipedia.org/w/api.php?action=query&meta=siteinfo&siprop=fileextensions > gives you enwiki's list. > > _______________________________________________ > Mediawiki-api mailing list > Mediawiki-api@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/mediawiki-api >
_______________________________________________ Mediawiki-api mailing list Mediawiki-api@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-api