ixjonez 02/01/07 10:46:08
Modified: lib/LiveFrame Tag: p`¶@°è °è ¨Ì àÅ x¶@x¶@8È 8È
¶@¶@¶@¶@¶@¶@Ðy Ðy ¨¶@¨¶@Û Û
¸¶@¸¶@`Ü `Ü Ã Ã Ã Ã ¨Ç ¨Ç
à¶@à¶@è¶@è¶@ð¶@ð¶@ø¶@ø¶@
/tmp/cvs-serv15347/lib/LiveFrame/Site.pm No tag
Site.pm
Log:
if the specified gallery position is out of bounds, just put the gallery on
the end of the list.
Revision Changes Path
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
No revision
1.5 +4 -2 commons/lib/LiveFrame/Site.pm
Index: /tmp/cvs-serv15347/lib/LiveFrame/Site.pm
===================================================================
RCS file: /cvsroot/liveframe/commons/lib/LiveFrame/Site.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- /tmp/cvs-serv15347/lib/LiveFrame/Site.pm 2002/01/04 01:12:53 1.4
+++ /tmp/cvs-serv15347/lib/LiveFrame/Site.pm 2002/01/07 18:46:08 1.5
@@ -68,8 +68,10 @@
$self->galleries();
my $num_galleries = $self->num_galleries();
- # if no position was indicated, push the gallery on the end of the list
- $pos = $num_galleries unless defined $pos;
+ # if no position was indicated or if the position is out of bounds, push
+ # the gallery on the end of the list
+ $pos = $num_galleries if (! defined $pos ||
+ defined $pos && $pos > $num_galleries);
if ($pos == $num_galleries) {
# we can simply add the new gallery to the end
No revision
No revision
1.5 +4 -2 commons/lib/LiveFrame/Site.pm
Index: Site.pm
===================================================================
RCS file: /cvsroot/liveframe/commons/lib/LiveFrame/Site.pm,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Site.pm 2002/01/04 01:12:53 1.4
+++ Site.pm 2002/01/07 18:46:08 1.5
@@ -68,8 +68,10 @@
$self->galleries();
my $num_galleries = $self->num_galleries();
- # if no position was indicated, push the gallery on the end of the list
- $pos = $num_galleries unless defined $pos;
+ # if no position was indicated or if the position is out of bounds, push
+ # the gallery on the end of the list
+ $pos = $num_galleries if (! defined $pos ||
+ defined $pos && $pos > $num_galleries);
if ($pos == $num_galleries) {
# we can simply add the new gallery to the end
|