Merge pull request #9888 from eileenmcnaughton/cust_another
[civicrm-core.git] / CRM / Contribute / Page / PaymentInfo.php
index 9975748dc87ee5b898ba05a7e058f87bf9f1eb09..8227ff067f737b8bcd8241ac74600d03605a1e85 100644 (file)
@@ -3,7 +3,7 @@
  +--------------------------------------------------------------------+
  | CiviCRM version 4.7                                                |
  +--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2016                                |
+ | Copyright CiviCRM LLC (c) 2004-2017                                |
  +--------------------------------------------------------------------+
  | This file is a part of CiviCRM.                                    |
  |                                                                    |
@@ -28,7 +28,7 @@
 /**
  *
  * @package CRM
- * @copyright CiviCRM LLC (c) 2004-2016
+ * @copyright CiviCRM LLC (c) 2004-2017
  */
 class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
   public function preProcess() {
@@ -42,6 +42,9 @@ class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page {
     $this->assign('id', $this->_id);
     $this->assign('context', $this->_context);
     $this->assign('component', $this->_component);
+    if ($this->_component != 'event') {
+      $this->assign('hideButtonLinks', TRUE);
+    }
   }
 
   public function browse() {