When filtering/unfiltering, start at 1.
authorSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 23:57:36 +0000 (01:57 +0200)
committerSteinar H. Gunderson <sesse@debian.org>
Wed, 25 Jul 2007 23:57:36 +0000 (01:57 +0200)
perl/Sesse/pr0n/Index.pm

index ef8bb543d0b205aba78ea44add76c035ff606649..db07bc816a1ee979fbe9d53220bb2289efbcf071 100644 (file)
@@ -296,10 +296,12 @@ sub handler {
                                                chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "unfilter"));
                                                $newsettings{'model'} = undef;
                                                $newsettings{'lens'} = undef;
                                                chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "unfilter"));
                                                $newsettings{'model'} = undef;
                                                $newsettings{'lens'} = undef;
+                                               $newsettings{'start'} = 1;
                                        } else {
                                                chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "filter"));
                                                $newsettings{'model'} = $e->{'model'};
                                                $newsettings{'lens'} = defined($e->{'lens'}) ? $e->{'lens'} : '';
                                        } else {
                                                chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "filter"));
                                                $newsettings{'model'} = $e->{'model'};
                                                $newsettings{'lens'} = defined($e->{'lens'}) ? $e->{'lens'} : '';
+                                               $newsettings{'start'} = 1;
                                        }
                                        
                                        my $url = "/$event/" . Sesse::pr0n::Common::get_query_string(\%newsettings, \%defsettings);
                                        }
                                        
                                        my $url = "/$event/" . Sesse::pr0n::Common::get_query_string(\%newsettings, \%defsettings);
@@ -343,9 +345,11 @@ sub handler {
                                if (defined($author)) {
                                        chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "unfilter"));
                                        $newsettings{'author'} = undef;
                                if (defined($author)) {
                                        chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "unfilter"));
                                        $newsettings{'author'} = undef;
+                                       $newsettings{'start'} = 1;
                                } else {
                                        chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "filter"));
                                        $newsettings{'author'} = $ref->{'takenby'};
                                } else {
                                        chomp ($action = Sesse::pr0n::Templates::fetch_template($r, "filter"));
                                        $newsettings{'author'} = $ref->{'takenby'};
+                                       $newsettings{'start'} = 1;
                                }
 
                                my $url = "/$event/" . Sesse::pr0n::Common::get_query_string(\%newsettings, \%defsettings);
                                }
 
                                my $url = "/$event/" . Sesse::pr0n::Common::get_query_string(\%newsettings, \%defsettings);