Last modified: 2010-05-15 15:37:38 UTC
Currently, the MediaWiki software uses a hard-coded media type (MIME type) of
name has been registered with IANA by now, and some users probably want to use a
The attached patch adds the ability to configure the media type which shall be
getting media types for this language registered has already begun. The default
LocalSettings.php as usual.
The patch is for 1.4.3 or the REL1_4 branch (will work on both at the moment).
It will not apply cleanly to CVS HEAD.
Created attachment 489 [details]
JS media type patch against mediawiki-1.4.3
Thank you, W3C, for using non-assigned types as the only examples in your HTML specification
The diff fails on HEAD (works on REL1_4). It's probably unwise to add this to
REL1_4 (closed for features)
$ patch -p1 < patch
patching file includes/DefaultSettings.php
Hunk #1 succeeded at 374 with fuzz 1 (offset 35 lines).
patching file includes/EditPage.php
Hunk #1 succeeded at 923 (offset 173 lines).
Hunk #2 succeeded at 1015 (offset 173 lines).
patching file includes/RawPage.php
Hunk #1 succeeded at 20 (offset 3 lines).
patching file includes/Skin.php
Hunk #1 FAILED at 202.
Hunk #2 FAILED at 2121.
2 out of 2 hunks FAILED -- saving rejects to file includes/Skin.php.rej
patching file includes/SkinTemplate.php
Hunk #1 succeeded at 145 with fuzz 2.
Hunk #2 succeeded at 218 (offset 6 lines).
Hunk #3 FAILED at 861.
Hunk #4 succeeded at 907 (offset 44 lines).
1 out of 4 hunks FAILED -- saving rejects to file includes/SkinTemplate.php.rej
patching file skins/MonoBook.php
Hunk #1 succeeded at 61 with fuzz 1 (offset 8 lines).
Hunk #2 succeeded at 122 (offset 9 lines).
patching file skins/Standard.php
patching file skins/disabled/Amethyst.pt
patching file skins/disabled/Chick.pt
patching file skins/disabled/MonoBook.pt
can't find file to patch at input line 258
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
|diff -Naur mediawiki-1.4.3/skins/disabled/Wikimania.php
|--- mediawiki-1.4.3/skins/disabled/Wikimania.php 2005-04-03
|+++ mediawiki-1.4.3-jsmimetype/skins/disabled/Wikimania.php 2005-05-03
File to patch: skins/disabled/Wikimania.php
skins/disabled/Wikimania.php: No such file or directory
Skip this patch? [y] y
2 out of 2 hunks ignored
patching file skins/disabled/WikimediaWiki.pt
Created attachment 493 [details]
Patch against CVS HEAD as of 2005-05-04T10:33:08+0200
This patch applies cleanly against CVS HEAD as of a few seconds ago.
Created attachment 501 [details]
Fixed version of patch for HEAD branch
Sorry, the previous patch had bugs in it: there were a few '$' characters
missing due to a copy-and-paste error. I created this fixed version by
inserting them into the patch file.
Applied to HEAD, thanks for the patch.