cc-4336: Fixed the issue. But this whole chunk of code could probably be removed.

This commit is contained in:
Rudi Grinberg 2012-09-05 14:33:49 -04:00
parent 5412fd8bcf
commit ab6ae1ce8e
1 changed files with 4 additions and 0 deletions

View File

@ -405,12 +405,16 @@ class Application_Model_StoredFile
*/
public function getFileExtension()
{
// TODO : what's the point of having this function? Can we not just use
// the extension from the file_path column from cc_files?
$mime = $this->_file->getDbMime();
if ($mime == "audio/vorbis" || $mime == "application/ogg") {
return "ogg";
} elseif ($mime == "audio/mp3" || $mime == "audio/mpeg") {
return "mp3";
} elseif ($mime == "audio/x/flac") {
return "flac";
}
}