r77493 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r77492‎ | r77493 | r77494 >
Date:18:37, 30 November 2010
Author:catrope
Status:ok
Tags:
Comment:
Fixes for r77451 per CR: add UploadStashZeroLengthFileException to AutoLoader and add $wgUploadStashScalerBaseUrl to DefaultSettings.php
Modified paths:
  • /trunk/phase3/includes/AutoLoader.php (modified) (history)
  • /trunk/phase3/includes/DefaultSettings.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/AutoLoader.php
@@ -688,6 +688,7 @@
689689 'UploadStashBadPathException' => 'includes/upload/UploadStash.php',
690690 'UploadStashBadVersionException' => 'includes/upload/UploadStash.php',
691691 'UploadStashFileException' => 'includes/upload/UploadStash.php',
 692+ 'UploadStashZeroLengthFileException' => 'includes/upload/UploadStash.php',
692693
693694 # languages
694695 'Language' => 'languages/Language.php',
Index: trunk/phase3/includes/DefaultSettings.php
@@ -259,6 +259,14 @@
260260 $wgUploadBaseUrl = "";
261261
262262 /**
 263+ * To enable remote on-demand scaling, set this to the thumbnail base URL.
 264+ * Full thumbnail URL will be like $wgUploadStashScalerBaseUrl/e/e6/Foo.jpg/123px-Foo.jpg
 265+ * where 'e6' are the first two characters of the MD5 hash of the file name.
 266+ * If $wgUploadStashScalerBaseUrl is set to false, thumbs are rendered locally as needed.
 267+ */
 268+$wgUploadStashScalerBaseUrl = false;
 269+
 270+/**
263271 * To set 'pretty' URL paths for actions other than
264272 * plain page views, add to this array. For instance:
265273 * 'edit' => "$wgScriptPath/edit/$1"

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r77451Dual strategy thumbnailing -- locally for development and simpler wikis, or i...neilk02:45, 30 November 2010

Status & tagging log