fix URL::retrieve

This commit is contained in:
Etienne Roudeix
2013-09-04 15:15:38 +02:00
parent f10294fee2
commit b910b0af86
7 changed files with 32 additions and 12 deletions

View File

@@ -98,4 +98,12 @@ class RewritingRetriever
$this->rewrittenUrl = $this->search->getUrl();
}
}
/**
* @return mixed
*/
public function toString()
{
return $this->rewrittenUrl === null ? $this->url : $this->rewrittenUrl;
}
}