Changeset 7038
- Timestamp:
- 01/14/08 04:36:59 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/cvUrlMoverPlugin/trunk/lib/cvUrlMover.class.php
r6935 r7038 39 39 * error if there have not been any forwards. 40 40 * @param sfEvent $event The event 41 * @throws sfStopException If redirect happens41 * @throws cvUrlMoverRedirectException If redirect happens 42 42 */ 43 43 public function handle404Event(sfEvent $event) … … 55 55 * a 301 redirect to the client. This is optimal for search engines. 56 56 * 57 * @throws sfStopException If redirect happens57 * @throws cvUrlMoverRedirectException If redirect happens 58 58 */ 59 59 public function handle404() … … 80 80 * Forces the redirect. 81 81 * @param string $to The new symfony URL to use 82 * @throws sfStopException No matter what.82 * @throws cvUrlMoverRedirectException No matter what. 83 83 */ 84 84 protected function redirect($to) … … 91 91 $this->context->getResponse()->sendHttpHeaders(); 92 92 93 throw new sfStopException('page has moved to ' . $to);93 throw new cvUrlMoverRedirectException('page has moved to ' . $to); 94 94 } 95 95 }