X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=thumb.php;h=bedf17151020cc6d276f98e74e4ffeed6cd0a988;hp=f425d87e594489fddbf360bff25969818b04e2dc;hb=9ddd146c262806e993ea66994f367a0a795e762d;hpb=b37fca1cb6c04bd71dec687400ed55a518c19b85 diff --git a/thumb.php b/thumb.php index f425d87e59..bedf171510 100644 --- a/thumb.php +++ b/thumb.php @@ -25,6 +25,7 @@ use MediaWiki\Logger\LoggerFactory; use MediaWiki\MediaWikiServices; define( 'MW_NO_OUTPUT_COMPRESSION', 1 ); +define( 'MW_ENTRY_POINT', 'thumb' ); require __DIR__ . '/includes/WebStart.php'; // Don't use fancy MIME detection, just check the file extension for jpg/gif/png @@ -523,7 +524,7 @@ function wfGenerateThumbnail( File $file, array $params, $thumbName, $thumbPath * /w/images/thumb/a/ab/Foo.png/120px-Foo.png. The $thumbRel parameter * of this function would be set to "a/ab/Foo.png/120px-Foo.png". * This method is responsible for turning that into an array - * with the folowing keys: + * with the following keys: * * f => the filename (Foo.png) * * rel404 => the whole thing (a/ab/Foo.png/120px-Foo.png) * * archived => 1 (If the request is for an archived thumb)