Commit 32b20897 authored by Alex Sampaio's avatar Alex Sampaio Committed by GitHub
Browse files

Merge pull request #7634 from Quetzacoalt91/fix-notifications-module

Hotfix for module notifications page
parents 916e112e 77ba38d3
...@@ -418,7 +418,6 @@ class ModuleController extends FrameworkBundleAdminController ...@@ -418,7 +418,6 @@ class ModuleController extends FrameworkBundleAdminController
$modules->{$moduleLabel} = $this->getPresentedProducts($modulesPart); $modules->{$moduleLabel} = $this->getPresentedProducts($modulesPart);
} }
$translator = $this->container->get('translator');
$errorMessage = $translator->trans( $errorMessage = $translator->trans(
'You do not have permission to add this.', 'You do not have permission to add this.',
array(), array(),
...@@ -428,9 +427,9 @@ class ModuleController extends FrameworkBundleAdminController ...@@ -428,9 +427,9 @@ class ModuleController extends FrameworkBundleAdminController
return $this->render('PrestaShopBundle:Admin/Module:notifications.html.twig', array( return $this->render('PrestaShopBundle:Admin/Module:notifications.html.twig', array(
'enableSidebar' => true, 'enableSidebar' => true,
'layoutHeaderToolbarBtn' => $this->getToolbarButtons(), 'layoutHeaderToolbarBtn' => $this->getToolbarButtons(),
'layoutTitle' => $layoutTitle, 'layoutTitle' => $translator->trans('Module notifications', array(), 'Admin.Modules.Feature'),
'help_link' => $this->generateSidebarLink('AdminModules'), 'help_link' => $this->generateSidebarLink('AdminModules'),
'modules' => $moduleManager->getModulesWithNotifications($modulesPresenter), 'modules' => $modules,
'requireAddonsSearch' => false, 'requireAddonsSearch' => false,
'requireBulkActions' => false, 'requireBulkActions' => false,
'requireFilterStatus' => false, 'requireFilterStatus' => false,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment