performance increases to the Gallery, bug #4103

This commit is contained in:
Doug Bell 2008-10-28 21:52:05 +00:00
parent fec49433c3
commit f5aafd53e0
3 changed files with 107 additions and 49 deletions

View file

@ -648,6 +648,8 @@ sub getAssetClassForFile {
my $self = shift;
my $filepath = shift;
$self->session->log->info( "Checking asset class for file '$filepath'" );
# Checks for Photo assets
if ( $filepath =~ /\.(jpe?g|gif|png)$/i ) {
return "WebGUI::Asset::File::GalleryFile::Photo";