Fix ordering of OpenDocument type detection so template files can actually be uploaded.
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 22 Jan 2009 00:15:16 +0000 (00:15 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 22 Jan 2009 00:15:16 +0000 (00:15 +0000)
commit5bb6e71e38d764ae467363fc70bb4502f9506c29
treea745cc7631aea69d6313480a5f2fdc48dd54390b
parent4299d279567b58af085287d8c4b7a99e0ab1ce3d
Fix ordering of OpenDocument type detection so template files can actually be uploaded.
Previously, the shorter types like 'text' matched before the longer ones like 'text-template', causing an .ott file to be misdetected as an .odt... and thus rejected for being the wrong type.
includes/MimeMagic.php