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

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