MediaWiki
1.39.10
MimeMagicImproveFromExtensionHook.php
Go to the documentation of this file.
1
<?php
2
3
namespace
MediaWiki\Hook
;
4
5
use MimeAnalyzer;
6
14
interface
MimeMagicImproveFromExtensionHook
{
25
public
function
onMimeMagicImproveFromExtension
( $mimeMagic,
$ext
, &
$mime
);
26
}
MediaWiki\Hook\MimeMagicImproveFromExtensionHook
This is a hook handler interface, see docs/Hooks.md.
Definition
MimeMagicImproveFromExtensionHook.php:14
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 Tue Oct 1 2024 01:15:42 for MediaWiki by
1.10.0