Got sick of testing local copies of Wikipedia articles with no images handy.
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 20 May 2008 06:30:36 +0000 (06:30 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 20 May 2008 06:30:36 +0000 (06:30 +0000)
commit2c65904fb0d772b1260cec4deb3b20386015fa29
tree3afdfd6d6cf21c65dd19a7cf070f7139f8e73fc5
parent9b2ab1b0e29c6f7c511f071e4bb23bc2a44d683a
Got sick of testing local copies of Wikipedia articles with no images handy.
Threw together a really quick hack FileRepo class to grab images from the remote wiki using the MediaWiki API.

Amazingly it sort of works -- be warned however:
* no scaling seems to be done yet -- multi-megapixel images in your browser :D
* no caching of lookups -- verrrry slow
* lookups are done one at a time, not in any kind of batching
* probably doesn't properly support lots and lots of things
includes/AutoLoader.php
includes/filerepo/ForeignAPIFile.php [new file with mode: 0644]
includes/filerepo/ForeignAPIRepo.php [new file with mode: 0644]
includes/filerepo/ForeignDBRepo.php