Update for file line ending
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Jun 2016 17:04:48 +0000 (13:04 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 28 Jun 2016 17:04:48 +0000 (13:04 -0400)
use \r\n instead of just \n

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

index 9f0df01..a4fde89 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.2.12
+ * Version: 1.2.13
  * 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.2.12
+ * @version 1.2.13
  */
 
 /*
@@ -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.2.12');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.2.13');
 define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.0.18');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 7a184dd..311f80f 100644 (file)
@@ -88,7 +88,7 @@ class GlmMembersFront_events_icalFeed extends GlmMembersFront_events_baseAction
         $event = $this->getModelEventData($eventId);
         $this->postAddRecurrences = false;
         $icalHeader = <<<EOD
-\nBEGIN:VCALENDAR
+\r\nBEGIN:VCALENDAR
 PRODID:-//Gaslight Media Inc//Gaslight Events Calendar v2.0/EN
 VERSION:2.0
 CALSCALE:GREGORIAN
@@ -100,7 +100,7 @@ EOD;
 EOD;
 
         $eventTemplateStart = <<<EOD
-\nBEGIN:VEVENT
+\r\nBEGIN:VEVENT
 UID:%d@%s
 ORGANIZER:CN=%s
 CREATED:%s
@@ -112,7 +112,7 @@ SUMMARY:%s
 STATUS:CONFIRMED
 EOD;
         $eventTemplateEnd = <<<EOD
-\nEND:VEVENT
+\r\nEND:VEVENT
 EOD;
         $dateTimeFormat  = '%s %s:%s %s';
         $dateFormat      = '%s';