Permalink
Browse files

[BUGFIX] Files with uppercase extensions were not being assigned an a…

…ppCategory()
  • Loading branch information...
mobiusnz committed Sep 14, 2011
1 parent dc84665 commit af81f443372d4c921b4da832025acda4edde8862
Showing with 1 addition and 1 deletion.
  1. +1 −1 filesystem/File.php
View
@@ -259,7 +259,7 @@ function canDelete($member = null) {
* @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":

0 comments on commit af81f44

Please sign in to comment.