Code Duplication    Length = 14-14 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

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

admin_pages/events/Events_Admin_Page.core.php 1 location

@@ 2184-2197 (lines=14) @@
2181
	}
2182
2183
2184
	protected function _delete_categories() {
2185
		$cat_ids = isset( $this->_req_data['EVT_CAT_ID'] ) ? (array) $this->_req_data['EVT_CAT_ID'] : (array) $this->_req_data['category_id'];
2186
2187
		foreach ( $cat_ids as $cat_id ) {
2188
			$this->_delete_category($cat_id);
2189
		}
2190
2191
		//doesn't matter what page we're coming from... we're going to the same place after delete.
2192
		$query_args = array(
2193
			'action' => 'category_list'
2194
			);
2195
		$this->_redirect_after_action(0,'','',$query_args);
2196
2197
	}
2198
2199
2200