Note: The downloadable file was updated 2009-11-05. If you downloaded the file available prior to that date please download the new revision. |
Release Date: 2009-10-29
Installation Instructions:
This hotfix requires EPiServer Community version 3.2.517.24 and Hoftix 1 to be in place before installing, please verify that before proceeding.
public class BrokenThumbnail : Thumbnail
{
protected internal BrokenThumbnail(int id, int width, int height, int parentId, ThumbnailFormat tf)
: base(id, width, height, parentId, tf)
{
}
}
Image _defaultImage;
// Call this method in an appropriate location of your initialization code.
public void InitializeMissingImage()
{
_defaultImage = ImageGalleryHandler.GetImage(113);
ImageGalleryHandler.GetThumbnailForMissingImageCallback = (image, width, height, thumbnailFormat) =>
{
// This if-statement makes sure that we don't enter
// a nonending loop should we fail to create a
// thumbnail for _defaultImage.
if (_defaultImage == image)
{
return new BrokenThumbnail(-1, width, height, _defaultImage.ID, thumbnailFormat);
}
return defaultImage.GetThumbnail(width, height, thumbnailFormat);
};
}
This hotfix addesses the following problems and bugs:
Improved performance in ForumHandler.GetTopics
Improved performance in clubHandler.GetClubs
Improved performance in ImageGalleryHandler.GetImages
#29974: DocumentArchive would delete a document if UpdateDocument was called unless the document was moved to another DocumentArchive
#30042: Some ForumHandler.GetQueryResult implementations for RoomQuery passes Room instead of RoomBase to QueryHandler, causing it to erroneously return Room-instances when ChildRooms were expected.