r65816 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65815‎ | r65816 | r65817 >
Date:19:40, 2 May 2010
Author:btongminh
Status:ok
Tags:
Comment:
(bug 23375) Added ogv, oga, spx as extensions for ogg files. Patch by Derk-Jan Hartman.
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/MimeMagic.php (modified) (history)
  • /trunk/phase3/includes/mime.info (modified) (history)
  • /trunk/phase3/includes/mime.types (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/MimeMagic.php
@@ -9,7 +9,7 @@
1010 * the file mime.types in the includes directory.
1111 */
1212 define('MM_WELL_KNOWN_MIME_TYPES',<<<END_STRING
13 -application/ogg ogg ogm ogv
 13+application/ogg ogx ogg ogm ogv oga spx
1414 application/pdf pdf
1515 application/vnd.oasis.opendocument.chart odc
1616 application/vnd.oasis.opendocument.chart-template otc
@@ -33,7 +33,7 @@
3434 audio/mpeg mpga mpa mp2 mp3
3535 audio/x-aiff aif aiff aifc
3636 audio/x-wav wav
37 -audio/ogg ogg
 37+audio/ogg oga spx ogg
3838 image/x-bmp bmp
3939 image/gif gif
4040 image/jpeg jpeg jpg jpe
@@ -45,7 +45,7 @@
4646 image/x-xcf xcf
4747 text/plain txt
4848 text/html html htm
49 -video/ogg ogm ogg ogv
 49+video/ogg ogv ogm ogg
5050 video/mpeg mpg mpeg
5151 END_STRING
5252 );
@@ -396,7 +396,7 @@
397397 'xbm',
398398
399399 // Formats we recognize magic numbers for
400 - 'djvu', 'ogg', 'ogv', 'mid', 'pdf', 'wmf', 'xcf',
 400+ 'djvu', 'ogx', 'ogg', 'ogv', 'oga', 'spx', 'mid', 'pdf', 'wmf', 'xcf',
401401
402402 // XML formats we sure hope we recognize reliably
403403 'svg',
Index: trunk/phase3/includes/mime.types
@@ -5,7 +5,7 @@
66 application/msword doc docx docm dot dotx dotm
77 application/octet-stream bin dms lha lzh exe class so dll
88 application/oda oda
9 -application/ogg ogg ogm
 9+application/ogg ogx ogg ogm ogv oga spx
1010 application/pdf pdf
1111 application/postscript ai eps ps
1212 application/rdf+xml rdf
@@ -63,10 +63,10 @@
6464 audio/basic au snd
6565 audio/midi mid midi kar
6666 audio/mpeg mpga mp2 mp3
67 -audio/ogg ogg
 67+audio/ogg oga ogg spx
6868 audio/x-aiff aif aiff aifc
6969 audio/x-mpegurl m3u
70 -audio/x-ogg ogg
 70+audio/x-ogg oga ogg spx
7171 audio/x-pn-realaudio ram rm
7272 audio/x-pn-realaudio-plugin rpm
7373 audio/x-realaudio ra
@@ -111,12 +111,12 @@
112112 text/xml xml xsl xslt rss rdf
113113 text/x-setext etx
114114 video/mpeg mpeg mpg mpe
115 -video/ogg ogm ogg
 115+video/ogg ogv ogm ogg
116116 video/quicktime qt mov
117117 video/vnd.mpegurl mxu
118118 video/x-flv flv
119119 video/x-msvideo avi
120 -video/x-ogg ogm ogg
 120+video/x-ogg ogv ogm ogg
121121 video/x-sgi-movie movie
122122 x-conference/x-cooltalk ice
123123 application/vnd.oasis.opendocument.text odt
@@ -134,4 +134,4 @@
135135 application/vnd.oasis.opendocument.formula odf
136136 application/vnd.oasis.opendocument.formula-template otf
137137 application/vnd.oasis.opendocument.text-master odm
138 -application/vnd.oasis.opendocument.text-web oth
\ No newline at end of file
 138+application/vnd.oasis.opendocument.text-web oth
Index: trunk/phase3/includes/mime.info
@@ -31,6 +31,7 @@
3232 audio/wav audio/x-wav audio/wave [AUDIO]
3333 audio/midi audio/mid [AUDIO]
3434 audio/basic [AUDIO]
 35+audio/ogg [AUDIO]
3536 audio/x-aiff [AUDIO]
3637 audio/x-pn-realaudio [AUDIO]
3738 audio/x-realaudio [AUDIO]
Index: trunk/phase3/RELEASE-NOTES
@@ -141,6 +141,7 @@
142142 * (bug 23298) Interwiki links with prefix only in log summaries now link to the
143143 correct link
144144 * (bug 23284) Times are now rounded correctly
 145+* (bug 23375) Added ogv, oga, spx as extensions for ogg files
145146
146147 === API changes in 1.17 ===
147148 * (bug 22738) Allow filtering by action type on query=logevent

Follow-up revisions

RevisionCommit summaryAuthorDate
r65931MFT r64509, r65650, r65816, fix .bmp and .oga MIME type detectiontstarling01:47, 5 May 2010

Status & tagging log