| @@ 1322-1336 (lines=15) @@ | ||
| 1319 | ||
| 1320 | ||
| 1321 | ||
| 1322 | protected function _insert_or_update_category($new_category) { |
|
| 1323 | ||
| 1324 | $cat_id = $new_category ? $this->_insert_category() : $this->_insert_category( TRUE ); |
|
| 1325 | $success = 0; //we already have a success message so lets not send another. |
|
| 1326 | if ( $cat_id ) { |
|
| 1327 | $query_args = array( |
|
| 1328 | 'action' => 'edit_category', |
|
| 1329 | 'VEN_CAT_ID' => $cat_id |
|
| 1330 | ); |
|
| 1331 | } else { |
|
| 1332 | $query_args = array( 'action' => 'add_category' ); |
|
| 1333 | } |
|
| 1334 | $this->_redirect_after_action( $success, '','', $query_args, TRUE ); |
|
| 1335 | ||
| 1336 | } |
|
| 1337 | ||
| 1338 | ||
| 1339 | ||
| @@ 2211-2226 (lines=16) @@ | ||
| 2208 | ||
| 2209 | ||
| 2210 | ||
| 2211 | protected function _insert_or_update_category($new_category) { |
|
| 2212 | ||
| 2213 | $cat_id = $new_category ? $this->_insert_category() : $this->_insert_category( TRUE ); |
|
| 2214 | $success = 0; //we already have a success message so lets not send another. |
|
| 2215 | ||
| 2216 | if ( $cat_id ) { |
|
| 2217 | $query_args = array( |
|
| 2218 | 'action' => 'edit_category', |
|
| 2219 | 'EVT_CAT_ID' => $cat_id |
|
| 2220 | ); |
|
| 2221 | } else { |
|
| 2222 | $query_args = array( 'action' => 'add_category' ); |
|
| 2223 | } |
|
| 2224 | $this->_redirect_after_action( $success, '','', $query_args, TRUE ); |
|
| 2225 | ||
| 2226 | } |
|
| 2227 | ||
| 2228 | ||
| 2229 | ||