Development

Changeset 7038 for plugins

You must first sign up to be able to contribute.

Changeset 7038 for plugins

Show
Ignore:
Timestamp:
01/14/08 04:36:59 (5 years ago)
Author:
Carl.Vondrick
Message:

cvUrlMoverPlugin: redirect throws a cvUrlMoverRedirectException now

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/cvUrlMoverPlugin/trunk/lib/cvUrlMover.class.php

    r6935 r7038  
    3939   * error if there have not been any forwards. 
    4040   * @param sfEvent $event The event 
    41    * @throws sfStopException If redirect happens 
     41   * @throws cvUrlMoverRedirectException If redirect happens 
    4242   */ 
    4343  public function handle404Event(sfEvent $event) 
     
    5555   * a 301 redirect to the client.  This is optimal for search engines. 
    5656   * 
    57    * @throws sfStopException If redirect happens 
     57   * @throws cvUrlMoverRedirectException If redirect happens 
    5858   */ 
    5959  public function handle404() 
     
    8080   * Forces the redirect. 
    8181   * @param string $to The new symfony URL to use 
    82    * @throws sfStopException No matter what. 
     82   * @throws cvUrlMoverRedirectException No matter what. 
    8383   */ 
    8484  protected function redirect($to) 
     
    9191    $this->context->getResponse()->sendHttpHeaders(); 
    9292 
    93     throw new sfStopException('page has moved to ' . $to); 
     93    throw new cvUrlMoverRedirectException('page has moved to ' . $to); 
    9494  } 
    9595}