diff --git a/src/Dravencms/FrontModule/SeoModule/SitemapPresenter.php b/src/Dravencms/FrontModule/SeoModule/SitemapPresenter.php index 147e746..24ffaa9 100644 --- a/src/Dravencms/FrontModule/SeoModule/SitemapPresenter.php +++ b/src/Dravencms/FrontModule/SeoModule/SitemapPresenter.php @@ -19,7 +19,6 @@ class SitemapPresenter extends BasePresenter public function renderDefault() { - $this->template->translationRepository = $this->entityManager->getRepository('Gedmo\Translatable\Entity\Translation'); $this->template->sitemap = $this->menuRepository->getSitemap(); } diff --git a/src/Dravencms/FrontModule/templates/Seo/Sitemap/default.latte b/src/Dravencms/FrontModule/templates/Seo/Sitemap/default.latte index 87df551..a16c7e6 100644 --- a/src/Dravencms/FrontModule/templates/Seo/Sitemap/default.latte +++ b/src/Dravencms/FrontModule/templates/Seo/Sitemap/default.latte @@ -7,11 +7,10 @@ always {$url->getSitemapPriority()} {link '//'.$url->getPresenter().':'.$url->getAction()} - {var $translations = $translationRepository->findTranslations($url)} - \ No newline at end of file