r68419 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r68418‎ | r68419 | r68420 >
Date:17:45, 22 June 2010
Author:daniel
Status:ok
Tags:
Comment:
use readable default values, like 24*60*60 for 'one day'
Modified paths:
  • /trunk/extensions/PagedTiffHandler/PagedTiffHandler.php (modified) (history)

Diff [purge]

Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler.php
@@ -88,11 +88,11 @@
8989 // Maximum number of embedded files in tiff image
9090 $wgTiffMaxEmbedFiles = 10000;
9191 // Maximum resolution of embedded images (product of width x height pixels)
92 -$wgTiffMaxEmbedFileResolution = 25600000; // max. Resolution 1600 x 1600 pixels
 92+$wgTiffMaxEmbedFileResolution = 1600*1600; // max. Resolution 1600 x 1600 pixels
9393 // Maximum size of metadata
94 -$wgTiffMaxMetaSize = 67108864; // 64kB
 94+$wgTiffMaxMetaSize = 64*1024;
9595 // TTL of cache entries for errors
96 -$wgTiffErrorCacheTTL = 84600;
 96+$wgTiffErrorCacheTTL = 24*60*60;
9797
9898 $wgFileExtensions[] = 'tiff';
9999 $wgFileExtensions[] = 'tif';

Status & tagging log