From c8a130dfd13be719e4f0a37179cdeb1594a439ac Mon Sep 17 00:00:00 2001 From: rillke Date: Sat, 21 Jun 2014 11:09:00 +0200 Subject: [PATCH] Detect chemical table files: Add them to MIME listings Adding mol, sdf, rxn, rd and rg file types to mime.types and mime.info map to make them known to MediaWiki by default. PHP's own module fileinfo module is not capable detecting Chemical table files. Instead, they are reported as text/plain. MediaHandlers can be attached by MIME type only. That's why these changes are required for [[Extension:MolHandler]] to work. Change-Id: I017507e4a950b3ce4e6576d12217cd42a337bad6 --- includes/mime.info | 5 +++++ includes/mime.types | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/includes/mime.info b/includes/mime.info index c7981871c2..9295ffbf10 100644 --- a/includes/mime.info +++ b/includes/mime.info @@ -108,3 +108,8 @@ application/vnd.ms-excel.template.macroEnabled.12 [OFFICE] application/vnd.ms-excel.addin.macroEnabled.12 [OFFICE] application/vnd.ms-excel.sheet.binary.macroEnabled.12 [OFFICE] application/acad application/x-acad application/autocad_dwg image/x-dwg application/dwg application/x-dwg application/x-autocad image/vnd.dwg drawing/dwg [DRAWING] +chemical/x-mdl-molfile [DRAWING] +chemical/x-mdl-sdfile [DRAWING] +chemical/x-mdl-rxnfile [DRAWING] +chemical/x-mdl-rdfile [DRAWING] +chemical/x-mdl-rgfile [DRAWING] diff --git a/includes/mime.types b/includes/mime.types index 61f7ff5810..c764b395c8 100644 --- a/includes/mime.types +++ b/includes/mime.types @@ -169,3 +169,8 @@ application/vnd.ms-excel.sheet.binary.macroEnabled.12 xlsb model/vnd.dwfx+xps dwfx application/vnd.ms-xpsdocument xps application/x-opc+zip docx dotx docm dotm potx ppsx pptx ppam pptm potm ppsm xlsx xltx xlsm xltm xlam xlsb dwfx xps +chemical/x-mdl-molfile mol +chemical/x-mdl-sdfile sdf +chemical/x-mdl-rxnfile rxn +chemical/x-mdl-rdfile rd +chemical/x-mdl-rgfile rg -- 2.20.1