Thread:Project:Support desk/MIME type warning

I am looking to disable the warning message defined in MediaWiki:Mediawarning from appearing with .doc .docx .xlsz and .xls files. I tried editing the file DefaultSettings.php adding the mime type to the $wgTrustedMediaFormats which worked but apparently this file should not be edited. What is the best way to achieve this?

Thanks