[cleanup] Remove deprecated pattern &CRM_Core_Config::singleton()
[civicrm-core.git] / CRM / Activity / BAO / ICalendar.php
index 4ebc2b0b54bdff0598d3f0243cf7d16061468ef8..cb2cb014eff745ed34526d7214b9f82f2dcf577f 100644 (file)
@@ -67,8 +67,7 @@ class CRM_Activity_BAO_ICalendar {
   public function addAttachment(&$attachments, $contacts) {
     // Check preferences setting
     if (Civi::settings()->get('activity_assignee_notification_ics')) {
-      $config = &CRM_Core_Config::singleton();
-      $this->icsfile = tempnam($config->customFileUploadDir, 'ics');
+      $this->icsfile = tempnam(CRM_Core_Config::singleton()->customFileUploadDir, 'ics');
       if ($this->icsfile !== FALSE) {
         rename($this->icsfile, $this->icsfile . '.ics');
         $this->icsfile .= '.ics';