From c310cecf406b9d2ab0a4edfb6a5d7df1485e3848 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 17 Sep 2012 16:40:27 -0400 Subject: [PATCH] CC-4463: do we need getFileExtension()? --- airtime_mvc/application/models/StoredFile.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/airtime_mvc/application/models/StoredFile.php b/airtime_mvc/application/models/StoredFile.php index 3469c75c9..420510953 100644 --- a/airtime_mvc/application/models/StoredFile.php +++ b/airtime_mvc/application/models/StoredFile.php @@ -407,11 +407,12 @@ SQL; */ public function getFileExtension() { + return ""; // 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") { + if ($mime == "audio/ogg" || $mime == "application/ogg") { return "ogg"; } elseif ($mime == "audio/mp3" || $mime == "audio/mpeg") { return "mp3"; @@ -505,8 +506,6 @@ SQL; */ public function getRelativeFileUrl($baseUrl) { - Logging::info("getting media!"); - return $baseUrl."/api/get-media/file/".$this->getId().".".$this->getFileExtension(); }