// Clean code
This commit is contained in:
1 parent
79f0ba9bfc
commit
6fd2a8bc63
1 file changed
-6
@@ -632,17 +632,11 @@ class AdminModulesControllerCore extends AdminController
|
|||||||
$this->errors[] = Tools::displayError('This module need to be installed to be updated:').' '.$module->name;
|
$this->errors[] = Tools::displayError('This module need to be installed to be updated:').' '.$module->name;
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
// If we install a module, force temporary global context for multishop
|
|
||||||
if (Shop::isFeatureActive() && Context::shop() != Shop::CONTEXT_ALL)
|
|
||||||
{
|
|
||||||
|
|
||||||
// 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 && $method != 'getContent')
|
if (Shop::isFeatureActive() && Context::shop() != Shop::CONTEXT_ALL && $method != 'getContent')
|
||||||
{
|
{
|
||||||
Context::getContext()->tmpOldShop = clone(Context::getContext()->shop);
|
Context::getContext()->tmpOldShop = clone(Context::getContext()->shop);
|
||||||
Context::getContext()->shop = new Shop();
|
Context::getContext()->shop = new Shop();
|
||||||
Configuration::updateValue('RSS_FEED_TITLE', 'lol');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//retrocompatibility
|
//retrocompatibility
|
||||||
|
|||||||
Reference in new issue
Block a user