Add clean up for ical feed import script
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Jul 2017 15:25:15 +0000 (11:25 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 5 Jul 2017 15:25:15 +0000 (11:25 -0400)
Remove the temp file created from the icalFeedImport.

index.php
models/front/events/icalFeedImport.php

index 790d624..a0d6404 100644 (file)
--- 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 <cscott@gaslightmedia.com>
  * @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.
index 927f010..279ec1f 100644 (file)
@@ -498,6 +498,7 @@ class GlmMembersFront_events_icalFeedImport
                 $Recurrences->createRecurrenceTimesEntries( $recurr_id, true, true );
             }
         }
+        unlink( $filename );
         if ( !$debug ) {
             $out = $number_events . ' events imported';
         }