mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
BUGFIX: fixed file icon for uppercase file extensions
This commit is contained in:
parent
43fb566388
commit
00d01aa6e3
@ -411,7 +411,7 @@ class File extends DataObject {
|
||||
* @return String
|
||||
*/
|
||||
public function appCategory() {
|
||||
return self::get_app_category($this->Extension);
|
||||
return self::get_app_category($this->getExtension());
|
||||
}
|
||||
|
||||
public function CMSThumbnail() {
|
||||
@ -426,7 +426,7 @@ class File extends DataObject {
|
||||
* @return String
|
||||
*/
|
||||
public function Icon() {
|
||||
$ext = $this->Extension;
|
||||
$ext = strtolower($this->getExtension());
|
||||
if(!Director::fileExists(FRAMEWORK_DIR . "/images/app_icons/{$ext}_32.gif")) {
|
||||
$ext = $this->appCategory();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user