Index: branches/RC/kernel/units/files/file_tp.php =================================================================== diff -u -r9616 -r9649 --- branches/RC/kernel/units/files/file_tp.php (.../file_tp.php) (revision 9616) +++ branches/RC/kernel/units/files/file_tp.php (.../file_tp.php) (revision 9649) @@ -9,6 +9,17 @@ return $this->ItemLink($params); } + + function FileIcon($params) + { + $object =& $this->getObject($params); + /* @var $object kDBItem */ + + $last_dot = strrpos($object->GetDBField('FilePath'), '.'); + $ext = ($last_dot !== false) ? substr($object->GetDBField('FilePath'), $last_dot + 1).'.gif' : ''; + + return $ext ? $ext : $params['default']; + } } ?> \ No newline at end of file