(bug 26548) Make multi-paged documents (PDFs) work with ForeignAPIRepo (aka InstantCo...
authorBrian Wolff <bawolff@users.mediawiki.org>
Sat, 5 Feb 2011 08:49:48 +0000 (08:49 +0000)
committerBrian Wolff <bawolff@users.mediawiki.org>
Sat, 5 Feb 2011 08:49:48 +0000 (08:49 +0000)
commitec2af084d28e489e51c696fb7953a3a22eb1e4cf
tree5327212d0f2ba4702d835125b18e7e69821c9d19
parent13bb571b11663aaa51c28e39ae345ac1bafd8e06
(bug 26548) Make multi-paged documents (PDFs) work with ForeignAPIRepo (aka InstantCommons).

This adds a new parameter to the query=imageinfo (and query=stashimageinfo) that takes rendering
parameters other than width and height. This could be page for pdf's and DjVu, or thumbtime for ogg's, etc.
Syntax is &iiurlparam=param1=value1|param2=value2|... I'm not sure if that really fits with the normal way
of doing things in the api, but couldn't think of anything better since the parameters are arbitrary.

I also noticed that some of the pre-existing error codes in query=imageinfo seem to duplicate the module prefix. I'm
not sure what the deal with that is, but i did not follow that example in the new error codes i introduced.

Note: In order for this to work, both the foreign repo and the local wiki have to be running this code.
RELEASE-NOTES
includes/api/ApiQueryImageInfo.php
includes/api/ApiQueryStashImageInfo.php
includes/filerepo/ForeignAPIFile.php
includes/filerepo/ForeignAPIRepo.php