MediaWiki
REL1_35
MimeMagicImproveFromExtensionHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use MimeAnalyzer;
6
11
interface
MimeMagicImproveFromExtensionHook
{
22
public
function
onMimeMagicImproveFromExtension
( $mimeMagic,
$ext
, &
$mime
);
23
}
MediaWiki\Hook\MimeMagicImproveFromExtensionHook
Stable to implement.
Definition
MimeMagicImproveFromExtensionHook.php:11
MediaWiki\Hook\MimeMagicImproveFromExtensionHook\onMimeMagicImproveFromExtension
onMimeMagicImproveFromExtension( $mimeMagic, $ext, &$mime)
Use this hook to further improve the MIME type detected by considering the file extension.
MediaWiki\Hook
Definition
ActionBeforeFormDisplayHook.php:3
$mime
$mime
Definition
router.php:60
$ext
if(!is_readable( $file)) $ext
Definition
router.php:48
includes
Hook
MimeMagicImproveFromExtensionHook.php
Generated on Sat Apr 6 2024 00:07:13 for MediaWiki by
1.9.8