performance increases to the Gallery, bug #4103
This commit is contained in:
parent
fec49433c3
commit
f5aafd53e0
3 changed files with 107 additions and 49 deletions
|
|
@ -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";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue