Merge pull request #13059 from seamuslee001/lab_core_505
[civicrm-core.git] / CRM / Event / Form / ManageEvent.php
index 882e0f1d9c652e13e9ed1b2c8b4dc54f167a31fe..5e58066d398c2fb046a356b25431b4cf3a95d339 100644 (file)
@@ -1,9 +1,9 @@
 <?php
 /*
  +--------------------------------------------------------------------+
- | CiviCRM version 4.7                                                |
+ | CiviCRM version 5                                                  |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2018                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -27,7 +27,7 @@
 
 /**
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2018
  */
 
 /**
@@ -56,7 +56,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
    */
   protected $_single;
 
-  protected $_action;
+  public $_action;
 
   /**
    * Are we actually managing an event template?
@@ -357,7 +357,7 @@ class CRM_Event_Form_ManageEvent extends CRM_Core_Form {
       switch ($className) {
         case 'Event':
           $attributes = $this->getVar('_attributes');
-          $subPage = strtolower(basename(CRM_Utils_Array::value('action', $attributes)));
+          $subPage = CRM_Utils_Request::retrieveComponent($attributes);
           break;
 
         case 'EventInfo':