BUGFIX: fixed file icon for uppercase file extensions

This commit is contained in:
Zauberfisch 2013-03-07 16:09:48 +00:00
parent 43fb566388
commit 00d01aa6e3

View File

@ -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();
}