mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #59 from mobiusnz/master
BUGFIX: Files with uppercase extensions were not being assigned an appCategory()
This commit is contained in:
commit
f0933e32de
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user