Commit graph

4 commits

Author SHA1 Message Date
Aaron Schulz
3dbb621c58 FU r100535: renamed thumb-handler.php to match the other files here 2011-10-27 22:42:53 +00:00
Aaron Schulz
3c5ccee75c FU r100535:
* Added thumb-handler.php5 file
* Moved 404.php to thumb-handler.php as wfDisplay404Error()
* Removed excess short-circuiting error cases in thumb-handler.php
* Moved cURL extension check to the top of the file
* Improved sample $thgThumbHashFragment regex value
* Cleaned up wfStreamThumbViaCurl() error handling code a bit
2011-10-26 04:13:05 +00:00
Aaron Schulz
a75ac8b0af FU r100535:
* Changed custom functions to work via a $thgThumbCallbacks variable
* Added 'checkCache' and 'fillCache' hooks to $thgThumbCallbacks
* Minor regex cleanup to wfExtractThumbParams()
* Re-organized a bit of the wfStreamThumbViaCurl() code
2011-10-24 03:08:45 +00:00
Aaron Schulz
9907c91477 Added a basic thumb-handler.php file, configured via thumb.config.php. The code is based on the wmf thumb handler, but simplified. It is disabled by default.
* The thumb.php parameter extraction can also be overridden by the config to handle more complex setups and things like OggHandler and PagedTiffHandler.
* A simple 404 error page is also included. It can be overridden by the config.
* Additional HTTP headers can be passed through cURL via the config.
2011-10-23 09:36:35 +00:00