Ignore:
Timestamp:
11/28/10 19:30:07 (14 years ago)
Author:
nanardon
Message:
  • add search functions
File:
1 edited

Legend:

Unmodified
Added
Removed
  • server/trunk/web/lib/Sophie/Controller/Explorer.pm

    r40 r43  
    2424sub index :Path { 
    2525    my ( $self, $c, @args ) = @_; 
     26 
     27    if (grep { exists($c->req->params->{$_}) } qw(distribution release arch)) { 
     28        $c->session->{explorer} = { 
     29            distribution => $c->req->param('distribution') || undef, 
     30            release => $c->req->param('release') || undef, 
     31            arch => $c->req->param('arch') || undef, 
     32        }; 
     33    } 
     34    $c->session->{__explorer} = $c->session->{explorer}; 
    2635 
    2736    $c->stash->{path} = join('/', grep { $_  } @args); 
Note: See TracChangeset for help on using the changeset viewer.