Skip to content

Commit

Permalink
Fixed overwriting configuration with site settings
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Jun 1, 2021
1 parent ec89479 commit e065435
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Aimeos/Shop/Base/Context.php
Expand Up @@ -103,9 +103,8 @@ public function get( bool $locale = true, string $type = 'frontend' ) : \Aimeos\
$this->context->setLocale( $localeItem );
$this->context->setI18n( $this->i18n->get( array( $localeItem->getLanguageId() ) ) );

foreach( $localeItem->getSiteItem()->getConfig() as $key => $value ) {
$config->set( $key, $value );
}
$config = new \Aimeos\MW\Config\Decorator\Memory( $config, $localeItem->getSiteItem()->getConfig() );
$this->context->setConfig( $config );
}

return $this->context;
Expand Down

0 comments on commit e065435

Please sign in to comment.