X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FContribute%2FPage%2FPaymentInfo.php;h=8227ff067f737b8bcd8241ac74600d03605a1e85;hb=6e8af2688e90c7a0243e9f3d76b175a5b0450f61;hp=016d4a89d5cf5fc058c7d4b360caad2894b18f5c;hpb=3646027af48e8c158e25deb8c164433f10010faf;p=civicrm-core.git diff --git a/CRM/Contribute/Page/PaymentInfo.php b/CRM/Contribute/Page/PaymentInfo.php index 016d4a89d5..8227ff067f 100644 --- a/CRM/Contribute/Page/PaymentInfo.php +++ b/CRM/Contribute/Page/PaymentInfo.php @@ -3,7 +3,7 @@ +--------------------------------------------------------------------+ | CiviCRM version 4.7 | +--------------------------------------------------------------------+ - | Copyright CiviCRM LLC (c) 2004-2015 | + | Copyright CiviCRM LLC (c) 2004-2017 | +--------------------------------------------------------------------+ | This file is a part of CiviCRM. | | | @@ -28,7 +28,7 @@ /** * * @package CRM - * @copyright CiviCRM LLC (c) 2004-2015 + * @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() { @@ -53,16 +56,14 @@ class CRM_Contribute_Page_PaymentInfo extends CRM_Core_Page { } /** - * This function takes care of all the things common to all - * pages. This typically involves assigning the appropriate + * Run page. + * + * This typically involves assigning the appropriate * smarty variable :) * * @return string * The content generated by running this page */ - /** - * @return string - */ public function run() { $this->preProcess(); if ($this->_action) {