@@ -155,14 +155,12 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | return; |
| 158 | - } |
|
| 159 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 158 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 160 | 159 | { |
| 161 | 160 | $error = array( 'product-item-option' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 162 | 161 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 163 | 162 | $this->logException( $e ); |
| 164 | - } |
|
| 165 | - catch( \Exception $e ) |
|
| 163 | + } catch( \Exception $e ) |
|
| 166 | 164 | { |
| 167 | 165 | $error = array( 'product-item-option' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 168 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -155,14 +155,12 @@ |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | return; |
| 158 | - } |
|
| 159 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 158 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 160 | 159 | { |
| 161 | 160 | $error = array( 'product-item-related' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 162 | 161 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 163 | 162 | $this->logException( $e ); |
| 164 | - } |
|
| 165 | - catch( \Exception $e ) |
|
| 163 | + } catch( \Exception $e ) |
|
| 166 | 164 | { |
| 167 | 165 | $error = array( 'product-item-related' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 168 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -144,14 +144,12 @@ |
||
| 144 | 144 | } |
| 145 | 145 | |
| 146 | 146 | return; |
| 147 | - } |
|
| 148 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 147 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 149 | 148 | { |
| 150 | 149 | $error = array( 'product-item-special' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 151 | 150 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 152 | 151 | $this->logException( $e ); |
| 153 | - } |
|
| 154 | - catch( \Exception $e ) |
|
| 152 | + } catch( \Exception $e ) |
|
| 155 | 153 | { |
| 156 | 154 | $error = array( 'product-item-special' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 157 | 155 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'subscription', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | |
| 234 | 228 | $msg = $context->getI18n()->dt( 'admin', 'Your export will be available in a few minutes for download' ); |
| 235 | 229 | $view->info = $view->get( 'info', [] ) + ['subscription-item' => $msg]; |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -279,14 +271,12 @@ discard block |
||
| 279 | 271 | $view->tabindex = ++$idx + 1; |
| 280 | 272 | $view->itemBody .= $client->get(); |
| 281 | 273 | } |
| 282 | - } |
|
| 283 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 274 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 284 | 275 | { |
| 285 | 276 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 286 | 277 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 287 | 278 | $this->logException( $e ); |
| 288 | - } |
|
| 289 | - catch( \Exception $e ) |
|
| 279 | + } catch( \Exception $e ) |
|
| 290 | 280 | { |
| 291 | 281 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 292 | 282 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -323,18 +313,15 @@ discard block |
||
| 323 | 313 | |
| 324 | 314 | $this->nextAction( $view, $view->param( 'next' ), 'subscription', $view->item->getId(), 'save' ); |
| 325 | 315 | return; |
| 326 | - } |
|
| 327 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 316 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 328 | 317 | { |
| 329 | 318 | // fall through to create |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -376,14 +363,12 @@ discard block |
||
| 376 | 363 | foreach( $this->getSubClients() as $client ) { |
| 377 | 364 | $view->itemBody .= $client->search(); |
| 378 | 365 | } |
| 379 | - } |
|
| 380 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 366 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 381 | 367 | { |
| 382 | 368 | $error = array( 'subscription-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 383 | 369 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 384 | 370 | $this->logException( $e ); |
| 385 | - } |
|
| 386 | - catch( \Exception $e ) |
|
| 371 | + } catch( \Exception $e ) |
|
| 387 | 372 | { |
| 388 | 373 | $error = array( 'subscription-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 389 | 374 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -88,14 +88,12 @@ discard block |
||
| 88 | 88 | $view->tabindex = ++$idx + 1; |
| 89 | 89 | $view->itemBody .= $client->copy(); |
| 90 | 90 | } |
| 91 | - } |
|
| 92 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 91 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 93 | 92 | { |
| 94 | 93 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 95 | 94 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 96 | 95 | $this->logException( $e ); |
| 97 | - } |
|
| 98 | - catch( \Exception $e ) |
|
| 96 | + } catch( \Exception $e ) |
|
| 99 | 97 | { |
| 100 | 98 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 101 | 99 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -137,14 +135,12 @@ discard block |
||
| 137 | 135 | $view->tabindex = ++$idx + 1; |
| 138 | 136 | $view->itemBody .= $client->create(); |
| 139 | 137 | } |
| 140 | - } |
|
| 141 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 138 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 142 | 139 | { |
| 143 | 140 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 144 | 141 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 145 | 142 | $this->logException( $e ); |
| 146 | - } |
|
| 147 | - catch( \Exception $e ) |
|
| 143 | + } catch( \Exception $e ) |
|
| 148 | 144 | { |
| 149 | 145 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 150 | 146 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -185,14 +181,12 @@ discard block |
||
| 185 | 181 | |
| 186 | 182 | $this->nextAction( $view, 'search', 'group', null, 'delete' ); |
| 187 | 183 | return; |
| 188 | - } |
|
| 189 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 184 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 190 | 185 | { |
| 191 | 186 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 192 | 187 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 193 | 188 | $this->logException( $e ); |
| 194 | - } |
|
| 195 | - catch( \Exception $e ) |
|
| 189 | + } catch( \Exception $e ) |
|
| 196 | 190 | { |
| 197 | 191 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 198 | 192 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -233,14 +227,12 @@ discard block |
||
| 233 | 227 | $view->tabindex = ++$idx + 1; |
| 234 | 228 | $view->itemBody .= $client->get(); |
| 235 | 229 | } |
| 236 | - } |
|
| 237 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 230 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 238 | 231 | { |
| 239 | 232 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 240 | 233 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 241 | 234 | $this->logException( $e ); |
| 242 | - } |
|
| 243 | - catch( \Exception $e ) |
|
| 235 | + } catch( \Exception $e ) |
|
| 244 | 236 | { |
| 245 | 237 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 246 | 238 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -277,18 +269,15 @@ discard block |
||
| 277 | 269 | |
| 278 | 270 | $this->nextAction( $view, $view->param( 'next' ), 'group', $view->item->getId(), 'save' ); |
| 279 | 271 | return; |
| 280 | - } |
|
| 281 | - catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 272 | + } catch( \Aimeos\Admin\JQAdm\Exception $e ) |
|
| 282 | 273 | { |
| 283 | 274 | // fall through to create |
| 284 | - } |
|
| 285 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 275 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 286 | 276 | { |
| 287 | 277 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 288 | 278 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 289 | 279 | $this->logException( $e ); |
| 290 | - } |
|
| 291 | - catch( \Exception $e ) |
|
| 280 | + } catch( \Exception $e ) |
|
| 292 | 281 | { |
| 293 | 282 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 294 | 283 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -327,14 +316,12 @@ discard block |
||
| 327 | 316 | foreach( $this->getSubClients() as $client ) { |
| 328 | 317 | $view->itemBody .= $client->search(); |
| 329 | 318 | } |
| 330 | - } |
|
| 331 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 319 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 332 | 320 | { |
| 333 | 321 | $error = array( 'group-item' => $context->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 334 | 322 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 335 | 323 | $this->logException( $e ); |
| 336 | - } |
|
| 337 | - catch( \Exception $e ) |
|
| 324 | + } catch( \Exception $e ) |
|
| 338 | 325 | { |
| 339 | 326 | $error = array( 'group-item' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 340 | 327 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -160,14 +160,12 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return; |
| 163 | - } |
|
| 164 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 163 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 165 | 164 | { |
| 166 | 165 | $error = array( 'attribute-item-text' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 167 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 168 | 167 | $this->logException( $e ); |
| 169 | - } |
|
| 170 | - catch( \Exception $e ) |
|
| 168 | + } catch( \Exception $e ) |
|
| 171 | 169 | { |
| 172 | 170 | $error = array( 'attribute-item-text' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 173 | 171 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -160,14 +160,12 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return; |
| 163 | - } |
|
| 164 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 163 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 165 | 164 | { |
| 166 | 165 | $error = array( 'product-item-text' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 167 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 168 | 167 | $this->logException( $e ); |
| 169 | - } |
|
| 170 | - catch( \Exception $e ) |
|
| 168 | + } catch( \Exception $e ) |
|
| 171 | 169 | { |
| 172 | 170 | $error = array( 'product-item-text' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 173 | 171 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -160,14 +160,12 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return; |
| 163 | - } |
|
| 164 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 163 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 165 | 164 | { |
| 166 | 165 | $error = array( 'service-item-text' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 167 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 168 | 167 | $this->logException( $e ); |
| 169 | - } |
|
| 170 | - catch( \Exception $e ) |
|
| 168 | + } catch( \Exception $e ) |
|
| 171 | 169 | { |
| 172 | 170 | $error = array( 'service-item-text' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 173 | 171 | $view->errors = $view->get( 'errors', [] ) + $error; |
@@ -160,14 +160,12 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | return; |
| 163 | - } |
|
| 164 | - catch( \Aimeos\MShop\Exception $e ) |
|
| 163 | + } catch( \Aimeos\MShop\Exception $e ) |
|
| 165 | 164 | { |
| 166 | 165 | $error = array( 'catalog-item-text' => $this->getContext()->getI18n()->dt( 'mshop', $e->getMessage() ) ); |
| 167 | 166 | $view->errors = $view->get( 'errors', [] ) + $error; |
| 168 | 167 | $this->logException( $e ); |
| 169 | - } |
|
| 170 | - catch( \Exception $e ) |
|
| 168 | + } catch( \Exception $e ) |
|
| 171 | 169 | { |
| 172 | 170 | $error = array( 'catalog-item-text' => $e->getMessage() . ', ' . $e->getFile() . ':' . $e->getLine() ); |
| 173 | 171 | $view->errors = $view->get( 'errors', [] ) + $error; |