Skip to content

Commit

Permalink
Update JqadmController.php (#480)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tantacula authored Feb 27, 2023
1 parent 31aeafa commit 921d79f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Aimeos/Shop/Controller/JqadmController.php
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,6 @@ protected function createAdmin() : \Aimeos\Admin\JQAdm\Iface
$resource = Route::input( 'resource' );

$aimeos = app( 'aimeos' )->get();
$paths = $aimeos->getTemplatePaths( 'admin/jqadm/templates' );

$context = app( 'aimeos.context' )->get( false, 'backend' );
$context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) );
Expand All @@ -261,6 +260,7 @@ protected function createAdmin() : \Aimeos\Admin\JQAdm\Iface
$siteManager = \Aimeos\MShop::create( $context, 'locale/site');
$context->config()->apply( $siteManager->find( $site )->getConfig() );

$paths = $aimeos->getTemplatePaths( 'admin/jqadm/templates', $context->locale()->getSiteItem()->getTheme() );
$view = app( 'aimeos.view' )->create( $context, $paths, $lang );

$view->aimeosType = 'Laravel';
Expand Down

0 comments on commit 921d79f

Please sign in to comment.