I'm trying to add a mimetype for mobi files, so I can display a proper icon in my courses, but I can't get the new icon to display.
I've added a couple of lines to filelib.php:
'mobi' => array ('type'=>'application/x-mobipocket-ebook', 'icon'=>'mobi'),
'mobi' => array ('type'=>'AZW/Mobi', 'icon'=>'mobi'),
(For the record, I added the second after the first didn't work, just to see...)
I've added the appropriate icons to my theme's pix_core/f/ folder, where there are other icons currently overriding the defaults. I also used "Purge all caches" from the Administration > Development menu, to see if that would help. Just for kicks, I added the mimetype to my server's .htaccess: AddType application/x-mobipocket-ebook .mobi
Nothing seems to work.
The problem seems to be that Moodle isn't recognizing the mimetype. In the HTML, the icon reads as:
component=core&image=f%2Funknown-24
Can anyone spot what I'm doing wrong? Still the wrong mimetype name, maybe?