Merge pull request #59 from mobiusnz/master

BUGFIX: Files with uppercase extensions were not being assigned an appCategory()
This commit is contained in:
Will Rossiter 2011-09-15 18:15:51 -07:00
commit f0933e32de

View File

@ -263,7 +263,7 @@ class File extends DataObject {
* @return String
*/
public function appCategory() {
$ext = $this->Extension;
$ext = strtolower($this->Extension);
switch($ext) {
case "aif": case "au": case "mid": case "midi": case "mp3": case "ra": case "ram": case "rm":
case "mp3": case "wav": case "m4a": case "snd": case "aifc": case "aiff": case "wma": case "apl":