Code Duplication    Length = 19-19 lines in 2 locations

admin_pages/venues/Venues_Admin_Page.core.php 1 location

@@ 1382-1400 (lines=19) @@
1379
	 * TODO handle category exports()
1380
	 * @return file export
1381
	 */
1382
	protected function _categories_export() {
1383
1384
		//todo: I don't like doing this but it'll do until we modify EE_Export Class.
1385
		$new_request_args = array(
1386
			'export' => 'report',
1387
			'action' => 'categories',
1388
			'category_ids' => $this->_req_data['VEN_CAT_ID']
1389
			);
1390
1391
		$this->_req_data = array_merge( $this->_req_data, $new_request_args );
1392
1393
		EE_Registry::instance()->load_helper( 'File' );
1394
		if ( is_readable( EE_CLASSES . 'EE_Export.class.php') ) {
1395
			require_once( EE_CLASSES . 'EE_Export.class.php');
1396
			$EE_Export = EE_Export::instance( $this->_req_data );
1397
			$EE_Export->export();
1398
		}
1399
1400
	}
1401
1402
1403

caffeinated/admin/extend/events/Extend_Events_Admin_Page.core.php 1 location

@@ 651-669 (lines=19) @@
648
	 * handle category exports()
649
	 * @return file export
650
	 */
651
	protected function _categories_export() {
652
653
		//todo: I don't like doing this but it'll do until we modify EE_Export Class.
654
		$new_request_args = array(
655
			'export' => 'report',
656
			'action' => 'categories',
657
			'category_ids' => $this->_req_data['EVT_CAT_ID']
658
			);
659
660
		$this->_req_data = array_merge( $this->_req_data, $new_request_args );
661
662
		EE_Registry::instance()->load_helper( 'File' );
663
		if ( is_readable( EE_CLASSES . 'EE_Export.class.php') ) {
664
			require_once( EE_CLASSES . 'EE_Export.class.php');
665
			$EE_Export = EE_Export::instance( $this->_req_data );
666
			$EE_Export->export();
667
		}
668
669
	}
670
671
672