@@ -67,10 +67,15 @@ |
||
67 | 67 | |
68 | 68 | foreach( array_reverse( self::$fcn ) as $name => $fcn ) |
69 | 69 | { |
70 | - try { |
|
70 | + try |
|
71 | + { |
|
71 | 72 | return call_user_func_array( $fcn->bindTo( $this, static::class ), [$context, $path] ); |
72 | - } catch( \Exception $e ) { |
|
73 | - if( $e->getCode() !== 404 ) throw $e; |
|
73 | + } |
|
74 | + catch( \Exception $e ) |
|
75 | + { |
|
76 | + if( $e->getCode() !== 404 ) { |
|
77 | + throw $e; |
|
78 | + } |
|
74 | 79 | } |
75 | 80 | } |
76 | 81 |
@@ -262,7 +262,7 @@ |
||
262 | 262 | $context->setI18n( app( 'aimeos.i18n' )->get( array( $lang, 'en' ) ) ); |
263 | 263 | $context->setLocale( app( 'aimeos.locale' )->getBackend( $context, $site )->setLanguageId( $lang ) ); |
264 | 264 | |
265 | - $siteManager = \Aimeos\MShop::create( $context, 'locale/site'); |
|
265 | + $siteManager = \Aimeos\MShop::create( $context, 'locale/site' ); |
|
266 | 266 | $context->config()->apply( $siteManager->find( $site )->getConfig() ); |
267 | 267 | |
268 | 268 | $paths = $aimeos->getTemplatePaths( 'admin/jqadm/templates', $context->locale()->getSiteItem()->getTheme() ); |