From: Steve Sutton Date: Wed, 5 Jul 2017 15:25:15 +0000 (-0400) Subject: Add clean up for ical feed import script X-Git-Tag: v1.6.48^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d3a5ef4f5464ad11696a461822fa18d71c7dc3de;p=WP-Plugins%2Fglm-member-db-events.git Add clean up for ical feed import script Remove the temp file created from the icalFeedImport. --- diff --git a/index.php b/index.php index 790d624..a0d6404 100644 --- a/index.php +++ b/index.php @@ -3,7 +3,7 @@ * Plugin Name: GLM Members Database Events * Plugin URI: http://www.gaslightmedia.com/ * Description: Gaslight Media Members Database. - * Version: 1.6.47 + * Version: 1.6.48 * Author: Chuck Scott * Author URI: http://www.gaslightmedia.com/ * License: GPL2 @@ -20,7 +20,7 @@ * @package glmMembersDatabaseEventsAddOn * @author Chuck Scott * @license http://www.gaslightmedia.com Gaslightmedia - * @version 1.6.47 + * @version 1.6.48 */ /* @@ -38,7 +38,7 @@ * so that we're sure the other add-ons see an up to date * version from this plugin. */ -define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.47'); +define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.48'); define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.2'); // This is the minimum version of the GLM Members DB plugin require for this plugin. diff --git a/models/front/events/icalFeedImport.php b/models/front/events/icalFeedImport.php index 927f010..279ec1f 100644 --- a/models/front/events/icalFeedImport.php +++ b/models/front/events/icalFeedImport.php @@ -498,6 +498,7 @@ class GlmMembersFront_events_icalFeedImport $Recurrences->createRecurrenceTimesEntries( $recurr_id, true, true ); } } + unlink( $filename ); if ( !$debug ) { $out = $number_events . ' events imported'; }