From ab6ae1ce8e02c28f3caf87d037cd076e62388a6c Mon Sep 17 00:00:00 2001 From: Rudi Grinberg Date: Wed, 5 Sep 2012 14:33:49 -0400 Subject: [PATCH] cc-4336: Fixed the issue. But this whole chunk of code could probably be removed. --- airtime_mvc/application/models/StoredFile.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 2e41e4e65..39e5fd0af 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -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"; } }