Skip to content

Commit

Permalink
Use create() instead of createItem()
Browse files Browse the repository at this point in the history
  • Loading branch information
aimeos committed Nov 13, 2020
1 parent 2b330aa commit 359101f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Classes/Base/Locale.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ public static function getBackend( \Aimeos\MShop\Context\Item\Iface $context, st
try {
$localeItem = $localeManager->bootstrap( $site, '', '', false, null, true );
} catch( \Aimeos\MShop\Exception $e ) {
$localeItem = $localeManager->createItem();
$localeItem = $localeManager->create();
}

return $localeItem->setCurrencyId( null )->setLanguageId( null );
Expand Down
2 changes: 1 addition & 1 deletion Classes/Scheduler/Provider/AbstractProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ protected function getControllerOptions( array $selected ) : string
$langid = $GLOBALS['BE_USER']->uc['lang'];
}

$localeItem = \Aimeos\MShop::create( $context, 'locale' )->createItem();
$localeItem = \Aimeos\MShop::create( $context, 'locale' )->create();
$localeItem->setLanguageId( $langid );
$context->setLocale( $localeItem );

Expand Down

0 comments on commit 359101f

Please sign in to comment.