Merge pull request #1257 from Zauberfisch/3.1.0-beta2

BUGFIX: fixed file icon for uppercase file extensions
This commit is contained in:
Ingo Schommer 2013-03-07 08:16:13 -08:00
commit 58d0126538

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