| @@ 1326-1340 (lines=15) @@ | ||
| 1323 | ||
| 1324 | ||
| 1325 | ||
| 1326 | protected function _insert_or_update_category($new_category) { |
|
| 1327 | ||
| 1328 | $cat_id = $new_category ? $this->_insert_category() : $this->_insert_category( TRUE ); |
|
| 1329 | $success = 0; //we already have a success message so lets not send another. |
|
| 1330 | if ( $cat_id ) { |
|
| 1331 | $query_args = array( |
|
| 1332 | 'action' => 'edit_category', |
|
| 1333 | 'VEN_CAT_ID' => $cat_id |
|
| 1334 | ); |
|
| 1335 | } else { |
|
| 1336 | $query_args = array( 'action' => 'add_category' ); |
|
| 1337 | } |
|
| 1338 | $this->_redirect_after_action( $success, '','', $query_args, TRUE ); |
|
| 1339 | ||
| 1340 | } |
|
| 1341 | ||
| 1342 | ||
| 1343 | ||
| @@ 2219-2234 (lines=16) @@ | ||
| 2216 | ||
| 2217 | ||
| 2218 | ||
| 2219 | protected function _insert_or_update_category($new_category) { |
|
| 2220 | ||
| 2221 | $cat_id = $new_category ? $this->_insert_category() : $this->_insert_category( TRUE ); |
|
| 2222 | $success = 0; //we already have a success message so lets not send another. |
|
| 2223 | ||
| 2224 | if ( $cat_id ) { |
|
| 2225 | $query_args = array( |
|
| 2226 | 'action' => 'edit_category', |
|
| 2227 | 'EVT_CAT_ID' => $cat_id |
|
| 2228 | ); |
|
| 2229 | } else { |
|
| 2230 | $query_args = array( 'action' => 'add_category' ); |
|
| 2231 | } |
|
| 2232 | $this->_redirect_after_action( $success, '','', $query_args, TRUE ); |
|
| 2233 | ||
| 2234 | } |
|
| 2235 | ||
| 2236 | ||
| 2237 | ||