| @@ 1352-1356 (lines=5) @@ | ||
| 1349 | ); |
|
| 1350 | ||
| 1351 | //if called via ajax then we return query args otherwise redirect |
|
| 1352 | if ( defined('DOING_AJAX') && DOING_AJAX ) { |
|
| 1353 | return $query_args; |
|
| 1354 | } else { |
|
| 1355 | $this->_redirect_after_action( FALSE, '', '', $query_args, TRUE ); |
|
| 1356 | } |
|
| 1357 | ||
| 1358 | } |
|
| 1359 | ||
| @@ 2243-2250 (lines=8) @@ | ||
| 2240 | 'event_id' => $this->_reg_event->ID() |
|
| 2241 | ); |
|
| 2242 | ||
| 2243 | if ( defined('DOING_AJAX' )) { |
|
| 2244 | //display registration form again because there are errors (maybe validation?) |
|
| 2245 | $this->new_registration(); |
|
| 2246 | return; |
|
| 2247 | } else { |
|
| 2248 | $this->_redirect_after_action( FALSE, '', '', $query_args, TRUE ); |
|
| 2249 | return; |
|
| 2250 | } |
|
| 2251 | } |
|
| 2252 | /** @type EE_Transaction_Payments $transaction_payments */ |
|
| 2253 | $transaction_payments = EE_Registry::instance()->load_class( 'Transaction_Payments' ); |
|