/[Search-Estraier]/trunk/Estraier.pm
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/Estraier.pm

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 61 by dpavlin, Sat Jan 7 01:21:28 2006 UTC revision 63 by dpavlin, Sat Jan 7 16:19:31 2006 UTC
# Line 525  sub new { Line 525  sub new {
525          my $self = {@_};          my $self = {@_};
526          bless($self, $class);          bless($self, $class);
527    
528          foreach my $f (qw/uri attrs snippet keywords/) {          croak "missing uri for ResultDocument" unless defined($self->{uri});
                 croak "missing $f for ResultDocument" unless defined($self->{$f});  
         }  
529    
530          $self ? return $self : return undef;          $self ? return $self : return undef;
531  }  }
# Line 1290  sub cond_to_query { Line 1288  sub cond_to_query {
1288    
1289          if (my @attrs = $cond->attrs) {          if (my @attrs = $cond->attrs) {
1290                  for my $i ( 0 .. $#attrs ) {                  for my $i ( 0 .. $#attrs ) {
1291                          push @args,'attr' . ($i+1) . '=' . uri_escape( $attrs[$i] );                          push @args,'attr' . ($i+1) . '=' . uri_escape( $attrs[$i] ) if ($attrs[$i]);
1292                  }                  }
1293          }          }
1294    

Legend:
Removed from v.61  
changed lines
  Added in v.63

  ViewVC Help
Powered by ViewVC 1.1.26