Bug Fix Release
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Jul 2017 20:38:13 +0000 (16:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 19 Jul 2017 20:38:13 +0000 (16:38 -0400)
for ical feed.

index.php
models/front/events/icalFeed.php
readme.txt

index 2bb56e5..234c1c5 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.51
+ * Version: 1.6.52
  * 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.51
+ * @version 1.6.52
  */
 
 /*
@@ -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.51');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.52');
 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 3f6107d..37a0c79 100644 (file)
@@ -105,8 +105,7 @@ EOD;
         $this->postAddRecurrences = false;
         $eventTemplateStart = <<<EOD
 \r\nBEGIN:VEVENT
-UID:%d@%s
-ORGANIZER;CN="%s"
+UID:%d@%s%s
 CREATED:%s
 DTSTAMP:%s
 DTSTART:%s
@@ -153,10 +152,13 @@ EOD;
                 : '';
             $description .= "\nURL:{$http}{$event['url']}";
         }
+        // ORGANIZER part
+        $organizer = str_replace( '"', '', $event['contact_name'] );
+        $organizerCN = ( $organizer ) ? "\n" . 'ORGANIZER;CN="' . $organizer .  '" :' : '';
         $eventDataStart = sprintf($eventTemplateStart,
             $event['id'],
             $urlHost,
-            str_replace( '"', '', $event['contact_name']),
+            $organizerCN,
             $this->icalDateFormat($event['created']['timestamp']),
             $this->icalDateFormat($event['starting_timestamp']),
             $this->icalDateFormat($event['starting_timestamp']),
index 27f4189..19bc5a0 100644 (file)
@@ -25,6 +25,11 @@ e.g.
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
 == Changelog ==
+= 1.6.52 =
+* fix for ical feed ORGANIZER line
+
+= 1.6.51 =
+* Update the from to dates for the events when using not grouping by the days.
 
 = 1.6.49 =
 * Changing front end search forms to method = get. This is to keep the