[BUGFIX] Files with uppercase extensions were not being assigned an appCategory()

This commit is contained in:
Al 2011-09-14 16:28:37 +12:00
parent dc84665ec2
commit af81f44337

View File

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