Corrected comments

This commit is contained in:
Rudi Grinberg 2012-09-18 12:08:30 -04:00
parent bc873a3ece
commit f9319b869a
1 changed files with 4 additions and 2 deletions

View File

@ -418,13 +418,15 @@ SQL;
*/
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?
$possible_ext = $this->getRealFileExtension();
if ($possible_ext !== "") {
return $possible_ext;
}
// We fallback to guessing the extension from the mimetype if we
// cannot extract it from the file name
$mime = $this->_file->getDbMime();
if ($mime == "audio/ogg" || $mime == "application/ogg") {