Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler_body.php |
— | — | @@ -59,7 +59,7 @@ |
60 | 60 | * - identify-warnings |
61 | 61 | * - check for running-identify-service |
62 | 62 | */ |
63 | | - static function verifyFile( $upload, $mime, &$error ) { |
| 63 | + function verifyFileHook( $upload, $mime, &$error ) { |
64 | 64 | global $wgTiffMaxEmbedFiles, $wgTiffMaxMetaSize, $wgMaxUploadSize, |
65 | 65 | $wgTiffRejectOnError, $wgTiffRejectOnWarning, $wgTiffUseTiffReader, |
66 | 66 | $wgTiffReaderPath, $wgTiffReaderCheckEofForJS; |
Index: trunk/extensions/PagedTiffHandler/PagedTiffHandler.php |
— | — | @@ -121,7 +121,6 @@ |
122 | 122 | $wgAutoloadClasses['PagedTiffHandlerSeleniumTestSuite'] = $dir . 'selenium/PagedTiffHandlerTestSuite.php'; |
123 | 123 | |
124 | 124 | $wgMediaHandlers['image/tiff'] = 'PagedTiffHandler'; |
125 | | -$wgHooks['UploadVerifyFile'][] = 'PagedTiffHandler::verifyFile'; |
126 | 125 | $wgHooks['LanguageGetMagic'][] = 'PagedTiffHandler::addTiffLossyMagicWordLang'; |
127 | 126 | |
128 | 127 | define('TIFF_METADATA_VERSION', '1.0'); |