From 01727bdb4363062e82d08c43e90c49d60a564b05 Mon Sep 17 00:00:00 2001 From: Paul Andrieux Date: Mon, 25 Jul 2016 16:59:31 +0200 Subject: [PATCH] remove deprecated call --- Resolver/WidgetLocaleSwitcherContentResolver.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Resolver/WidgetLocaleSwitcherContentResolver.php b/Resolver/WidgetLocaleSwitcherContentResolver.php index 35d0249..238a109 100644 --- a/Resolver/WidgetLocaleSwitcherContentResolver.php +++ b/Resolver/WidgetLocaleSwitcherContentResolver.php @@ -64,7 +64,7 @@ public function getWidgetStaticContent(Widget $widget) { $widgetParams = parent::getWidgetStaticContent($widget); - $currentView = $this->currentViewHelper->getMainCurrentView(); + $currentView = $this->currentViewHelper->getCurrentView(); $viewTranslations = $currentView->getTranslations(); unset($this->locales[$currentView->getCurrentLocale()]);