Index: trunk/phase3/includes/AutoLoader.php |
— | — | @@ -688,6 +688,7 @@ |
689 | 689 | 'UploadStashBadPathException' => 'includes/upload/UploadStash.php', |
690 | 690 | 'UploadStashBadVersionException' => 'includes/upload/UploadStash.php', |
691 | 691 | 'UploadStashFileException' => 'includes/upload/UploadStash.php', |
| 692 | + 'UploadStashZeroLengthFileException' => 'includes/upload/UploadStash.php', |
692 | 693 | |
693 | 694 | # languages |
694 | 695 | 'Language' => 'languages/Language.php', |
Index: trunk/phase3/includes/DefaultSettings.php |
— | — | @@ -259,6 +259,14 @@ |
260 | 260 | $wgUploadBaseUrl = ""; |
261 | 261 | |
262 | 262 | /** |
| 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 | +/** |
263 | 271 | * To set 'pretty' URL paths for actions other than |
264 | 272 | * plain page views, add to this array. For instance: |
265 | 273 | * 'edit' => "$wgScriptPath/edit/$1" |