From 5cf2ad2c16b5c503bf362e814c4d353a6c4c9513 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Tue, 30 Nov 2010 18:37:08 +0000 Subject: [PATCH] Fixes for r77451 per CR: add UploadStashZeroLengthFileException to AutoLoader and add $wgUploadStashScalerBaseUrl to DefaultSettings.php --- includes/AutoLoader.php | 1 + includes/DefaultSettings.php | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index bcaa0387fb..5661375057 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -688,6 +688,7 @@ $wgAutoloadLocalClasses = array( 'UploadStashBadPathException' => 'includes/upload/UploadStash.php', 'UploadStashBadVersionException' => 'includes/upload/UploadStash.php', 'UploadStashFileException' => 'includes/upload/UploadStash.php', + 'UploadStashZeroLengthFileException' => 'includes/upload/UploadStash.php', # languages 'Language' => 'languages/Language.php', diff --git a/includes/DefaultSettings.php b/includes/DefaultSettings.php index 0078e5b77a..c69992f1eb 100644 --- a/includes/DefaultSettings.php +++ b/includes/DefaultSettings.php @@ -258,6 +258,14 @@ $wgTmpDirectory = false; */ $wgUploadBaseUrl = ""; +/** + * To enable remote on-demand scaling, set this to the thumbnail base URL. + * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg + * where 'e6' are the first two characters of the MD5 hash of the file name. + * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed. + */ +$wgUploadStashScalerBaseUrl = false; + /** * To set 'pretty' URL paths for actions other than * plain page views, add to this array. For instance: -- 2.20.1