Merge pull request #4696 from colemanw/CRM-15669
[civicrm-core.git] / CRM / Event / Page / ICalendar.php
index b9c89a2ff2b77b4954740186072f31976324a6f5..accb70a185346ff6592f81bf6c67b8a69c4cebaa 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.3                                                |
+ | CiviCRM version 4.6                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2013                                |
+ | Copyright CiviCRM LLC (c) 2004-2014                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2013
+ * @copyright CiviCRM LLC (c) 2004-2014
  * $Id$
  *
  */
@@ -48,7 +48,7 @@ class CRM_Event_Page_ICalendar extends CRM_Core_Page {
    *
    * @return void
    */
-  function run() {
+  public function run() {
     $id       = CRM_Utils_Request::retrieve('id', 'Positive', $this, FALSE, NULL, 'GET');
     $type     = CRM_Utils_Request::retrieve('type', 'Positive', $this, FALSE, 0);
     $start    = CRM_Utils_Request::retrieve('start', 'Positive', $this, FALSE, 0);
@@ -58,8 +58,6 @@ class CRM_Event_Page_ICalendar extends CRM_Core_Page {
     $html     = CRM_Utils_Request::retrieve('html', 'Positive', $this, FALSE, 0);
     $rss      = CRM_Utils_Request::retrieve('rss', 'Positive', $this, FALSE, 0);
 
-    CRM_Utils_System::setTitle(ts('Current and Upcoming Events'));
-
     $info = CRM_Event_BAO_Event::getCompleteInfo($start, $type, $id, $end);
     $this->assign('events', $info);
     $this->assign('timezone', @date_default_timezone_get());
@@ -105,4 +103,3 @@ class CRM_Event_Page_ICalendar extends CRM_Core_Page {
     CRM_Utils_System::civiExit();
   }
 }
-