fix count child on folder and category folder. Doubitch

This commit is contained in:
Manuel Raynaud
2013-09-19 20:24:33 +02:00
parent e1353a63a7
commit 24f17bcb0f
5 changed files with 20 additions and 10 deletions

View File

@@ -44,8 +44,11 @@ trait UrlRewritingTrait {
*
* @param string $locale a valid locale (e.g. en_US)
*/
public function getUrl($locale)
public function getUrl($locale = null)
{
if(null === $locale) {
$locale = $this->getLocale();
}
return URL::getInstance()->retrieve($this->getRewrittenUrlViewName(), $this->getId(), $locale)->toString();
}