Changeset 1638


Ignore:
Timestamp:
Oct 4, 2010, 3:39:48 AM (10 years ago)
Author:
teymour
Message:

De jolies urls + correction Abelin

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpc/trunk/project/apps/frontend/modules/solr/actions/actions.class.php

    r1637 r1638  
    273273  public function executeRedirect(sfWebRequest $request)
    274274  {
    275     $add = '';
    276     if ($p = $request->getParameter('format')) {
    277       $add .= '&format='.$p;
    278     }
    279     if ($p = $request->getParameter('object_name')) {
    280       $add .= '&object_name='.$p;
    281     }
    282275    if ($p = $request->getParameter('slug')) {
    283       $parlementaire = Doctrine::getTable('Parlementaire')->findBySlug($p);
    284       $add .= '&tag=parlementaire='.$parlementaire;
    285     }
    286     return $this->redirect('solr/search?query='.$request->getParameter('query').$add);
     276      $parlementaire = Doctrine::getTable('Parlementaire')->findOneBySlug($p);
     277      $request->setParameter('tag', 'parlementaire='.$parlementaire);
     278    }
     279
     280    return $this->forward('solr', 'search');
    287281  }
    288282}
Note: See TracChangeset for help on using the changeset viewer.