@@ -55,10 +55,13 @@ |
||
| 55 | 55 | |
| 56 | 56 | foreach( app( 'config' )->get( 'shop.page.catalog-detail' ) as $name ) |
| 57 | 57 | { |
| 58 | - try { |
|
| 58 | + try |
|
| 59 | + { |
|
| 59 | 60 | $params['aiheader'][$name] = Shop::get( $name )->header(); |
| 60 | 61 | $params['aibody'][$name] = Shop::get( $name )->body(); |
| 61 | - } catch( \Exception $e ) { |
|
| 62 | + } |
|
| 63 | + catch( \Exception $e ) |
|
| 64 | + { |
|
| 62 | 65 | if( $e->getCode() === 404 ) { abort( 404 ); } |
| 63 | 66 | throw $e; |
| 64 | 67 | } |