X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FUtils%2FICalendar.php;h=8081b335ab4d58603538ae039c46f76211e449d9;hb=cced0f6e4c2e244beca8ac97fc14e3806167c85e;hp=bde84f2173db4db8f004e1d260c68da004d97bbf;hpb=5e27028609a22fb01370d7ed1d7a9290ff27918f;p=civicrm-core.git diff --git a/CRM/Utils/ICalendar.php b/CRM/Utils/ICalendar.php index bde84f2173..8081b335ab 100644 --- a/CRM/Utils/ICalendar.php +++ b/CRM/Utils/ICalendar.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 5 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2018 | + | Copyright CiviCRM LLC (c) 2004-2019 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2018 + * @copyright CiviCRM LLC (c) 2004-2019 */ /** @@ -52,7 +52,7 @@ class CRM_Utils_ICalendar { $text = str_replace("\\", "\\\\", $text); $text = str_replace(',', '\,', $text); $text = str_replace(';', '\;', $text); - $text = str_replace(array("\r\n", "\n", "\r"), "\\n ", $text); + $text = str_replace(["\r\n", "\n", "\r"], "\\n ", $text); $text = implode("\n ", str_split($text, 50)); return $text; }