// Clean code

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@13558 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
aFolletete committed 2012-02-23 14:11:18 +00:00
1 parent 5f98d701f2
commit ac38a0a09b
1 file changed
+3 -9
+3 -9
View File
@@ -633,16 +633,10 @@ class AdminModulesControllerCore extends AdminController
else else
{ {
// If we install a module, force temporary global context for multishop // 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')
{ {
Context::getContext()->tmpOldShop = clone(Context::getContext()->shop);
// If we install a module, force temporary global context for multishop Context::getContext()->shop = new Shop();
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');
}
} }
//retrocompatibility //retrocompatibility