From d3a5ef4f5464ad11696a461822fa18d71c7dc3de Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Wed, 5 Jul 2017 11:25:15 -0400 Subject: [PATCH] Add clean up for ical feed import script Remove the temp file created from the icalFeedImport. --- index.php | 6 +++--- models/front/events/icalFeedImport.php | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) 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'; } -- 2.17.1