CRM-15603 - Remove unnecessary variables in contribution tab titles
authorColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 22:21:46 +0000 (17:21 -0500)
committerColeman Watts <coleman@civicrm.org>
Sun, 16 Nov 2014 22:21:46 +0000 (17:21 -0500)
CRM/Contribute/Form/ContributionPage/Amount.php
CRM/Contribute/Form/ContributionPage/Custom.php
CRM/Contribute/Form/ContributionPage/Premium.php
CRM/Contribute/Form/ContributionPage/Settings.php
CRM/Contribute/Form/ContributionPage/ThankYou.php
CRM/PCP/Form/Contribute.php

index 00c066809d711e78247720bde4a1ed54d716106f..7c8ff97c4ba54d0f5b5b227343af73d09e1a243e 100644 (file)
@@ -195,7 +195,7 @@ SELECT id
   function setDefaultValues() {
     $defaults = parent::setDefaultValues();
     $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title');
-    CRM_Utils_System::setTitle(ts('Contribution Amounts (%1)', array(1 => $title)));
+    CRM_Utils_System::setTitle(ts('Contribution Amounts') . " ($title)");
 
     if (empty($defaults['pay_later_text'])) {
       $defaults['pay_later_text'] = ts('I will send payment by check');
index 284499e4bfef10bfa81bdf5476ac93bde0d9a680..8cbf5bb72f4b40a2a3d9c24cdef36f13920db4d6 100644 (file)
@@ -89,7 +89,7 @@ class CRM_Contribute_Form_ContributionPage_Custom extends CRM_Contribute_Form_Co
 
     if ($this->_id) {
       $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title');
-      CRM_Utils_System::setTitle(ts('Include Profiles (%1)', array(1 => $title)));
+      CRM_Utils_System::setTitle(ts('Include Profiles') . " ($title)");
     }
 
 
index 69b592586080f930a8cf6ab7dca795e39f54439c..18c5e9bbcddcbe82c9a4904c1b63cec6cdf91b29 100644 (file)
@@ -50,7 +50,7 @@ class CRM_Contribute_Form_ContributionPage_Premium extends CRM_Contribute_Form_C
     $defaults = array();
     if (isset($this->_id)) {
       $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title');
-      CRM_Utils_System::setTitle(ts('Premiums (%1)', array(1 => $title)));
+      CRM_Utils_System::setTitle(ts('Premiums') . " ($title)");
       $dao               = new CRM_Contribute_DAO_Premium();
       $dao->entity_table = 'civicrm_contribution_page';
       $dao->entity_id    = $this->_id;
index 0298e8bce3c4190064e0bd73972c099761105deb..3046183d005a75faddd11884feccb62434142b54 100644 (file)
@@ -61,9 +61,7 @@ class CRM_Contribute_Form_ContributionPage_Settings extends CRM_Contribute_Form_
         $this->_id,
         'title'
       );
-      CRM_Utils_System::setTitle(ts('Title and Settings (%1)',
-          array(1 => $title)
-        ));
+      CRM_Utils_System::setTitle(ts('Title and Settings') . " ($title)");
 
       $ufJoinParams = array(
         'module' => 'OnBehalf',
index 90cb0943b78b141aad79ba299247d54380a3673b..d809ed7ff2ba3cd7e669346e030776b39a6c7043 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Contribute_Form_ContributionPage_ThankYou extends CRM_Contribute_Form_
    */
   function setDefaultValues() {
     $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title');
-    CRM_Utils_System::setTitle(ts('Thank-you and Receipting (%1)', array(1 => $title)));
+    CRM_Utils_System::setTitle(ts('Thank-you and Receipting') . " ($title)");
     return parent::setDefaultValues();
   }
 
index 763d00ed0f427e1c001eb1d33a434fdbd1cec24c..882b2c07a008817fddf8c053f156a9791833a8f6 100644 (file)
@@ -60,9 +60,6 @@ class CRM_PCP_Form_Contribute extends CRM_Contribute_Form_ContributionPage {
    * @return void
    */
   public function setDefaultValues() {
-    //   $title = CRM_Core_DAO::getFieldValue('CRM_Contribute_DAO_ContributionPage', $this->_id, 'title' );
-    //    CRM_Utils_System::setTitle(ts('Personal Campaign Page Settings (%1)', array(1 => $title)));
-
     $defaults = array();
 
     if (isset($this->_id)) {