Skip to content

Commit

Permalink
Merge custom site configuration on admin pages (#466)
Browse files Browse the repository at this point in the history
  • Loading branch information
defive authored Aug 26, 2022
1 parent 953df4c commit f186501
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Aimeos/Shop/Controller/JqadmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,13 @@ protected function createAdmin() : \Aimeos\Admin\JQAdm\Iface
$context = app( 'aimeos.context' )->get( false, 'backend' );
$context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
$context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site ) );

$siteManager = \Aimeos\MShop::create( $context, 'locale/site');

$siteItem = $siteManager->find( $site );
$siteConfig = $siteItem->getConfig();

$context->config()->apply( $siteConfig );

$view = app( 'aimeos.view' )->create( $context, $paths, $lang );

Expand Down

0 comments on commit f186501

Please sign in to comment.