Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Sunday, October 18, 2026

Diff for web-apps/fastcgi-gallery/_modules/gallery.pm between version 1.8 and 1.9

version 1.8, 2006/02/26 22:41:34 version 1.9, 2006/02/26 22:54:21
Line 287  sub handler { # {{{
Line 287  sub handler { # {{{
   
                 # Check if the selected width is allowed                  # Check if the selected width is allowed
                 my $sizes = $self->config('GallerySizes') || [ qw(320 640 800 1024 1600) ];                  my $sizes = $self->config('GallerySizes') || [ qw(320 640 800 1024 1600) ];
                 my $width = $query->{GallerySize} || $cookie->{GallerySize} || $sizes->[0];                  my $width = $query->{GallerySize} || $cookie->{GallerySize} || $sizes->[1] || $sizes->[0];
                 unless ((grep $width == $_, @$sizes) or ($width == $original_size)) {                  unless ((grep $width == $_, @$sizes) or ($width == $original_size)) {
                         #return $self->error('invalid_width');                          #return $self->error('invalid_width');
                         $width = $sizes->[0]; # invalid width, continue with smallest value                          $width = $sizes->[0]; # invalid width, continue with smallest value

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top