Index: trunk/phase3/includes/MimeMagic.php |
— | — | @@ -9,7 +9,7 @@ |
10 | 10 | * the file mime.types in the includes directory. |
11 | 11 | */ |
12 | 12 | define('MM_WELL_KNOWN_MIME_TYPES',<<<END_STRING |
13 | | -application/ogg ogg ogm |
| 13 | +application/ogg ogg ogm ogv |
14 | 14 | application/pdf pdf |
15 | 15 | application/x-javascript js |
16 | 16 | application/x-shockwave-flash swf |
— | — | @@ -29,7 +29,7 @@ |
30 | 30 | image/x-xcf xcf |
31 | 31 | text/plain txt |
32 | 32 | text/html html htm |
33 | | -video/ogg ogm ogg |
| 33 | +video/ogg ogm ogg ogv |
34 | 34 | video/mpeg mpg mpeg |
35 | 35 | END_STRING |
36 | 36 | ); |
— | — | @@ -360,7 +360,7 @@ |
361 | 361 | 'xbm', |
362 | 362 | |
363 | 363 | // Formats we recognize magic numbers for |
364 | | - 'djvu', 'ogg', 'mid', 'pdf', 'wmf', 'xcf', |
| 364 | + 'djvu', 'ogg', 'ogv', 'mid', 'pdf', 'wmf', 'xcf', |
365 | 365 | |
366 | 366 | // XML formats we sure hope we recognize reliably |
367 | 367 | 'svg', |
Index: trunk/phase3/includes/filerepo/File.php |
— | — | @@ -79,7 +79,8 @@ |
80 | 80 | 'htm' => 'html', |
81 | 81 | 'jpeg' => 'jpg', |
82 | 82 | 'mpeg' => 'mpg', |
83 | | - 'tiff' => 'tif' ); |
| 83 | + 'tiff' => 'tif', |
| 84 | + 'ogv' => 'ogg' ); |
84 | 85 | if( isset( $squish[$lower] ) ) { |
85 | 86 | return $squish[$lower]; |
86 | 87 | } elseif( preg_match( '/^[0-9a-z]+$/', $lower ) ) { |