Code Duplication    Length = 14-14 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 1300-1313 (lines=14) @@
1297
	}
1298
1299
1300
	protected function _delete_categories() {
1301
		$cat_ids = isset( $this->_req_data['VEN_CAT_ID'] ) ? (array) $this->_req_data['VEN_CAT_ID'] : (array) $this->_req_data['category_id'];
1302
1303
		foreach ( $cat_ids as $cat_id ) {
1304
			$this->_delete_category($cat_id);
1305
		}
1306
1307
		//doesn't matter what page we're coming from... we're going to the same place after delete.
1308
		$query_args = array(
1309
			'action' => 'category_list'
1310
			);
1311
		$this->_redirect_after_action(0,'','',$query_args);
1312
1313
	}
1314
1315
1316

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 2234-2247 (lines=14) @@
2231
	}
2232
2233
2234
	protected function _delete_categories() {
2235
		$cat_ids = isset( $this->_req_data['EVT_CAT_ID'] ) ? (array) $this->_req_data['EVT_CAT_ID'] : (array) $this->_req_data['category_id'];
2236
2237
		foreach ( $cat_ids as $cat_id ) {
2238
			$this->_delete_category($cat_id);
2239
		}
2240
2241
		//doesn't matter what page we're coming from... we're going to the same place after delete.
2242
		$query_args = array(
2243
			'action' => 'category_list'
2244
			);
2245
		$this->_redirect_after_action(0,'','',$query_args);
2246
2247
	}
2248
2249
2250