From ac38a0a09b53f7c384cc72d595d6445a24283aed Mon Sep 17 00:00:00 2001 From: aFolletete Date: Thu, 23 Feb 2012 14:11:18 +0000 Subject: [PATCH] // Clean code git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13558 b9a71923-0436-4b27-9f14-aed3839534dd --- controllers/admin/AdminModulesController.php | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/controllers/admin/AdminModulesController.php b/controllers/admin/AdminModulesController.php index 22c58cee9..04c5eca31 100644 --- a/controllers/admin/AdminModulesController.php +++ b/controllers/admin/AdminModulesController.php @@ -633,16 +633,10 @@ class AdminModulesControllerCore extends AdminController else { // If we install a module, force temporary global context for multishop - if (Shop::isFeatureActive() && Context::shop() != Shop::CONTEXT_ALL) + if (Shop::isFeatureActive() && Context::shop() != Shop::CONTEXT_ALL && $method != 'getContent') { - - // If we install a module, force temporary global context for multishop - if (Shop::isFeatureActive() && Context::shop() != Shop::CONTEXT_ALL && $method != 'getContent') - { - Context::getContext()->tmpOldShop = clone(Context::getContext()->shop); - Context::getContext()->shop = new Shop(); - Configuration::updateValue('RSS_FEED_TITLE', 'lol'); - } + Context::getContext()->tmpOldShop = clone(Context::getContext()->shop); + Context::getContext()->shop = new Shop(); } //retrocompatibility