mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
[BUGFIX] Files with uppercase extensions were not being assigned an appCategory()
This commit is contained in:
parent
dc84665ec2
commit
af81f44337
@ -259,7 +259,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":
|
||||
|
Loading…
x
Reference in New Issue
Block a user