From: rillke Date: Sat, 21 Jun 2014 09:09:00 +0000 (+0200) Subject: Detect chemical table files: Add them to MIME listings X-Git-Tag: 1.31.0-rc.0~15098^2 X-Git-Url: http://git.cyclocoop.org/data/Fool?a=commitdiff_plain;h=c8a130dfd13be719e4f0a37179cdeb1594a439ac;p=lhc%2Fweb%2Fwiklou.git 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 --- 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