mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02: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
|
* @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":
|
||||||
|
Loading…
Reference in New Issue
Block a user