/[webpac2]/Webpacus/lib/Webpacus/Controller/Search.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 /Webpacus/lib/Webpacus/Controller/Search.pm

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

revision 274 by dpavlin, Sat Dec 17 03:19:58 2005 UTC revision 275 by dpavlin, Sat Dec 17 03:20:19 2005 UTC
# Line 175  sub results_ajax : Path( 'results/ajax' Line 175  sub results_ajax : Path( 'results/ajax'
175                  }                  }
176          }          }
177    
178            if ($params->{_database}) {
179                    my $type = $c->config->{hyperstraier}->{type} || 'search';
180                    my $attr;
181                    if (ref($params->{_database}) eq 'ARRAY') {
182                            # FIXME do we need to add $ at end?
183                            $attr .= '(' . join("|",@{$params->{_database}}) . ')';
184                    } else {
185                            $attr .= $params->{_database};
186                    }
187                    push @attr, '@uri STRRX /' . $type . '/' . $attr . '/';
188            }
189    
190          my $q = join(" $operator ", @words);          my $q = join(" $operator ", @words);
191    
192          my $template = $params->{'_template'} || $c->config->{webpac}->{template};          my $template = $params->{'_template'} || $c->config->{webpac}->{template};

Legend:
Removed from v.274  
changed lines
  Added in v.275

  ViewVC Help
Powered by ViewVC 1.1.26