Skip to content

Commit

Permalink
Index by locale to prevent duplicates
Browse files Browse the repository at this point in the history
  • Loading branch information
joshuabaker committed Sep 2, 2015
1 parent 612e389 commit 990ff9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sitemap/models/Sitemap_UrlModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public function __construct($loc, \DateTimeInterface $lastmod, $changefreq = nul
*/
public function addAlternateUrl(Sitemap_AlternateUrlModel $alternateUrl)
{
$this->alternateUrls[] = $alternateUrl;
$this->alternateUrls[$alternateUrl->hreflang] = $alternateUrl;
}

/**
Expand Down

0 comments on commit 990ff9c

Please sign in to comment.