Switch to CRM_Core_Form::setTitle() instead of CRM_Utils_System::setTitle() part 3
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 20 Aug 2021 12:12:52 +0000 (13:12 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Thu, 2 Sep 2021 21:08:03 +0000 (22:08 +0100)
32 files changed:
CRM/Core/Form.php
CRM/Core/Form/Task/Batch.php
CRM/Core/Form/Task/PDFLetterCommon.php
CRM/Core/Form/Task/PickProfile.php
CRM/Core/I18n/Form.php
CRM/Custom/Form/DeleteField.php
CRM/Custom/Form/DeleteGroup.php
CRM/Custom/Form/Field.php
CRM/Custom/Form/Group.php
CRM/Custom/Form/MoveField.php
CRM/Event/Form/ParticipantFeeSelection.php
CRM/Event/Form/ParticipantView.php
CRM/Event/Form/Registration/AdditionalParticipant.php
CRM/Event/Form/Registration/Confirm.php
CRM/Event/Form/Registration/ThankYou.php
CRM/Event/Form/Task/AddToGroup.php
CRM/Event/Form/Task/Badge.php
CRM/Event/Form/Task/Batch.php
CRM/Event/Form/Task/Cancel.php
CRM/Event/Form/Task/PickProfile.php
CRM/Event/Form/Task/SaveSearch.php
CRM/Financial/Form/BatchTransaction.php
CRM/Financial/Form/FinancialBatch.php
CRM/Financial/Form/FinancialTypeAccount.php
CRM/Financial/Form/PaymentEdit.php
CRM/Friend/Form.php
CRM/Group/Form/Edit.php
CRM/Mailing/Form/Approve.php
CRM/Mailing/Form/ForwardMailing.php
CRM/Mailing/Form/Optout.php
CRM/Mailing/Form/Subscribe.php
CRM/Mailing/Form/Unsubscribe.php

index 62372af16aa9c4db4f32fec343ceace9e11bfcd0..69fc4ccb62bee3b83637c3651d8a1e1d771b8578 100644 (file)
@@ -2419,20 +2419,20 @@ class CRM_Core_Form extends HTML_QuickForm_Page {
   public function setPageTitle($entityLabel) {
     switch ($this->_action) {
       case CRM_Core_Action::ADD:
-        CRM_Utils_System::setTitle(ts('New %1', [1 => $entityLabel]));
+        $this->setTitle(ts('New %1', [1 => $entityLabel]));
         break;
 
       case CRM_Core_Action::UPDATE:
-        CRM_Utils_System::setTitle(ts('Edit %1', [1 => $entityLabel]));
+        $this->setTitle(ts('Edit %1', [1 => $entityLabel]));
         break;
 
       case CRM_Core_Action::VIEW:
       case CRM_Core_Action::PREVIEW:
-        CRM_Utils_System::setTitle(ts('View %1', [1 => $entityLabel]));
+        $this->setTitle(ts('View %1', [1 => $entityLabel]));
         break;
 
       case CRM_Core_Action::DELETE:
-        CRM_Utils_System::setTitle(ts('Delete %1', [1 => $entityLabel]));
+        $this->setTitle(ts('Delete %1', [1 => $entityLabel]));
         break;
     }
   }
index 9e65231ceb811364d712ffa964fc9eea85020fe1..f5a0cb5d677f36789bde5222dd8a0e2aadb1925e 100644 (file)
@@ -89,7 +89,7 @@ class CRM_Core_Form_Task_Batch extends CRM_Core_Form_Task {
       throw new InvalidArgumentException('ufGroupId is missing');
     }
     $this->_title = ts("Update multiple %1s", [1 => $this::$entityShortname]) . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
-    CRM_Utils_System::setTitle($this->_title);
+    $this->setTitle($this->_title);
 
     $this->addDefaultButtons(ts('Save'));
     $this->_fields = CRM_Core_BAO_UFGroup::getFields($ufGroupId, FALSE, CRM_Core_Action::VIEW);
index 836f0001ffda8c62b680729a0c814fcf6e39318f..7fca6da78973224ccf7e43168fa979f5b9473c9a 100644 (file)
@@ -30,7 +30,7 @@ class CRM_Core_Form_Task_PDFLetterCommon {
    * @var CRM_Core_Form $form
    */
   public static function preProcess(&$form) {
-    CRM_Utils_System::setTitle('Print/Merge Document');
+    $form->setTitle('Print/Merge Document');
   }
 
   /**
index 8a64e30535ab46405f7fbd8328036d8d328ea616..968e9d50e919a605eb0c156540337aed5f94c8aa 100644 (file)
@@ -65,7 +65,7 @@ abstract class CRM_Core_Form_Task_PickProfile extends CRM_Core_Form_Task {
     $session = CRM_Core_Session::singleton();
     $this->_userContext = $session->readUserContext();
 
-    CRM_Utils_System::setTitle(ts('Update multiple ' . $this::$entityShortname . 's'));
+    $this->setTitle(ts('Update multiple ' . $this::$entityShortname . 's'));
 
     // validations
     if (count($this->_entityIds) > $this->_maxEntities) {
index 6beb1d669dafc6cf9c783d1e31944a3558206060..f17c019e06538ae436c0e0d37b5f51da266ea47e 100644 (file)
@@ -80,7 +80,7 @@ class CRM_Core_I18n_Form extends CRM_Core_Form {
 
     $this->addDefaultButtons(ts('Save'), 'next', NULL);
 
-    CRM_Utils_System::setTitle(ts('Languages'));
+    $this->setTitle(ts('Languages'));
 
     $this->assign('locales', $this->_locales);
     $this->assign('field', $field);
index c713bbdbd115cd25fc58e277af80de7b2e00481f..993ed6138e86a128a27dafcca1a729339ad8421f 100644 (file)
@@ -49,7 +49,7 @@ class CRM_Custom_Form_DeleteField extends CRM_Core_Form {
 
     $this->_title = $defaults['label'] ?? NULL;
     $this->assign('title', $this->_title);
-    CRM_Utils_System::setTitle(ts('Delete %1', [1 => $this->_title]));
+    $this->setTitle(ts('Delete %1', [1 => $this->_title]));
   }
 
   /**
index a8e69436d430e5891fcdb5c12ea72f0eb0de4395..d3b9169fb02b28f23c3345f622e38e0ce3412d2c 100644 (file)
@@ -60,7 +60,7 @@ class CRM_Custom_Form_DeleteGroup extends CRM_Core_Form {
     }
     $this->assign('title', $this->_title);
 
-    CRM_Utils_System::setTitle(ts('Confirm Custom Group Delete'));
+    $this->setTitle(ts('Confirm Custom Group Delete'));
   }
 
   /**
index 756701b042c46ef6e6cf863512d521a94995b8c1..d766c9248d1edc6dcbf10e6c239340bc1ab4dfcc 100644 (file)
@@ -191,7 +191,7 @@ class CRM_Custom_Form_Field extends CRM_Core_Form {
   public function buildQuickForm() {
     if ($this->_gid) {
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $this->_gid, 'title');
-      CRM_Utils_System::setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('New Field')));
+      $this->setTitle($this->_title . ' - ' . ($this->_id ? ts('Edit Field') : ts('New Field')));
       $this->assign('gid', $this->_gid);
     }
 
index ddf49e1c3a806d4dd98e3d95f2b660f844acb5ed..e8e665586959c5565a2fc9d1311ec2a7555e0659 100644 (file)
@@ -59,14 +59,14 @@ class CRM_Custom_Form_Group extends CRM_Core_Form {
     // setting title for html page
     if ($this->_action == CRM_Core_Action::UPDATE) {
       $title = CRM_Core_BAO_CustomGroup::getTitle($this->_id);
-      CRM_Utils_System::setTitle(ts('Edit %1', [1 => $title]));
+      $this->setTitle(ts('Edit %1', [1 => $title]));
     }
     elseif ($this->_action == CRM_Core_Action::VIEW) {
       $title = CRM_Core_BAO_CustomGroup::getTitle($this->_id);
-      CRM_Utils_System::setTitle(ts('Preview %1', [1 => $title]));
+      $this->setTitle(ts('Preview %1', [1 => $title]));
     }
     else {
-      CRM_Utils_System::setTitle(ts('New Custom Field Set'));
+      $this->setTitle(ts('New Custom Field Set'));
     }
 
     if (isset($this->_id)) {
index 3156bb15adf5e02759a9453361ae395d829aab7d..0dcd317734c7f55e45bc40189a30c0c153f96764 100644 (file)
@@ -76,7 +76,7 @@ class CRM_Custom_Form_MoveField extends CRM_Core_Form {
       'label'
     );
 
-    CRM_Utils_System::setTitle(ts('Custom Field Move: %1',
+    $this->setTitle(ts('Custom Field Move: %1',
       [1 => $this->_srcFieldLabel]
     ));
 
index 876da092c258951cbbb5bfb0535450c6bb8b6214..a4cb587a92530c806623f4209d610e08870eab69 100644 (file)
@@ -95,7 +95,7 @@ class CRM_Event_Form_ParticipantFeeSelection extends CRM_Core_Form {
 
     $title = ts("Change selections for %1", [1 => $this->_contributorDisplayName]);
     if ($title) {
-      CRM_Utils_System::setTitle($title);
+      $this->setTitle($title);
     }
   }
 
index db19ee9c6e4d5eb226b8fdb4aa90e07557bb043a..6d205cc9bd42e8eea94792a609f09224871d0034 100644 (file)
@@ -207,7 +207,7 @@ class CRM_Event_Form_ParticipantView extends CRM_Core_Form {
     }
     $this->assign('displayName', $displayName);
     // omitting contactImage from title for now since the summary overlay css doesn't work outside of our crm-container
-    CRM_Utils_System::setTitle(ts('View Event Registration for') . ' ' . $displayName);
+    $this->setTitle(ts('View Event Registration for') . ' ' . $displayName);
 
     $roleId = $values[$participantID]['role_id'] ?? NULL;
     $title = $displayName . ' (' . CRM_Utils_Array::value($roleId, $participantRoles) . ' - ' . $eventTitle . ')';
index e5614e018b289395357d40d155276bf87da32f52..37fcc48b4625620be24423654a8846f8e582d7fb 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Event_Form_Registration_AdditionalParticipant extends CRM_Event_Form_R
     if ($skipCount) {
       $this->assign('skipCount', $skipCount);
     }
-    CRM_Utils_System::setTitle(ts('Register Participant %1 of %2', [1 => $participantCnt, 2 => $participantTot]));
+    $this->setTitle(ts('Register Participant %1 of %2', [1 => $participantCnt, 2 => $participantTot]));
 
     //CRM-4320, hack to check last participant.
     $this->_lastParticipant = FALSE;
index d83cad562f706f6cf8446fcd6656e6397f01f668..fa09baa91ef0b10ec45b4f8b73c5983c776d44b7 100644 (file)
@@ -87,7 +87,7 @@ class CRM_Event_Form_Registration_Confirm extends CRM_Event_Form_Registration {
     }
 
     if (isset($this->_values['event']['confirm_title'])) {
-      CRM_Utils_System::setTitle($this->_values['event']['confirm_title']);
+      $this->setTitle($this->_values['event']['confirm_title']);
     }
 
     // Personal campaign page
index 12dbd1abfaaccfc83af16694d1c98abb05d4bcf7..a4c2ad048e3ec8649776ddaa6b466ddaf5421613 100644 (file)
@@ -46,7 +46,7 @@ class CRM_Event_Form_Registration_ThankYou extends CRM_Event_Form_Registration {
 
     CRM_Event_Form_Registration_Confirm::assignProfiles($this);
 
-    CRM_Utils_System::setTitle(CRM_Utils_Array::value('thankyou_title', $this->_values['event']));
+    $this->setTitle(CRM_Utils_Array::value('thankyou_title', $this->_values['event']));
   }
 
   /**
index 11a7f3fca7f58e778123f4d5356881d47d47498b..ac41fd7faa701b584612321fb135b0cf12fb9d3c 100644 (file)
@@ -120,10 +120,10 @@ class CRM_Event_Form_Task_AddToGroup extends CRM_Event_Form_Task {
 
     // Set dynamic page title for 'Add Members Group (confirm)'
     if ($this->_id) {
-      CRM_Utils_System::setTitle(ts('Add Contacts: %1', [1 => $this->_title]));
+      $this->setTitle(ts('Add Contacts: %1', [1 => $this->_title]));
     }
     else {
-      CRM_Utils_System::setTitle(ts('Add Contacts to A Group'));
+      $this->setTitle(ts('Add Contacts to A Group'));
     }
 
     $this->addDefaultButtons(ts('Add to Group'));
index 2c1a5eebb011dd2238ab3d257701b25edf16561d..501105c5c034b2f36e2a8f9c64ec1fd32881fc57 100644 (file)
@@ -67,7 +67,7 @@ class CRM_Event_Form_Task_Badge extends CRM_Event_Form_Task {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Make Name Badges'));
+    $this->setTitle(ts('Make Name Badges'));
 
     // Ajax submit would interfere with file download
     $this->preventAjaxSubmit();
index 0107df02de5c05bcff5e64707cabe9792085e6ae..8e45031d14194034b7ded5d0ccb3cf81312dbb83 100644 (file)
@@ -84,7 +84,7 @@ class CRM_Event_Form_Task_Batch extends CRM_Event_Form_Task {
     }
 
     $this->_title = ts('Update multiple participants') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
-    CRM_Utils_System::setTitle($this->_title);
+    $this->setTitle($this->_title);
     $this->addDefaultButtons(ts('Save'));
 
     $this->_fields = CRM_Core_BAO_UFGroup::getFields($ufGroupId, FALSE, CRM_Core_Action::VIEW);
index 71a29f9d893e819bbfe4fd12921e84721606f047..32507e7e55536e841f9d0746c82d4e61d0a43751 100644 (file)
@@ -46,7 +46,7 @@ class CRM_Event_Form_Task_Cancel extends CRM_Event_Form_Task {
    * @return void
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Cancel Registration for Event Participation'));
+    $this->setTitle(ts('Cancel Registration for Event Participation'));
     $session = CRM_Core_Session::singleton();
     $this->addDefaultButtons(ts('Cancel Registrations'), 'done');
   }
index d120f81b5fd1764721364ddf41101ffcd3d0ddd7..6ec7b8757657b466d7b7d35b2be1404d18b21bea 100644 (file)
@@ -51,7 +51,7 @@ class CRM_Event_Form_Task_PickProfile extends CRM_Event_Form_Task {
     $session = CRM_Core_Session::singleton();
     $this->_userContext = $session->readUserContext();
 
-    CRM_Utils_System::setTitle(ts('Update multiple participants'));
+    $this->setTitle(ts('Update multiple participants'));
 
     $validate = FALSE;
     //validations
index 32f54f67f2f0207432a6e6598ffbc821c9ebf622..f05f682fd02258264f1b96a9d5457d0c96f04114 100644 (file)
@@ -48,7 +48,7 @@ class CRM_Event_Form_Task_SaveSearch extends CRM_Event_Form_Task {
    * @return void
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Smart Group'));
+    $this->setTitle(ts('Smart Group'));
     // get the qill
     $query = new CRM_Event_BAO_Query($this->get('formValues'));
     $qill = $query->qill();
index ef90e96c026ad5536fbabb4a7e96297edda48fd6..5a52547bd6f4512e37a504e0a0aaa41b3c176b6d 100644 (file)
@@ -53,7 +53,7 @@ class CRM_Financial_Form_BatchTransaction extends CRM_Contribute_Form_Search {
       $this->assign('validStatus', $validStatus);
       $this->_values = civicrm_api3('Batch', 'getSingle', ['id' => self::$_entityID]);
       $batchTitle = CRM_Core_DAO::getFieldValue('CRM_Batch_BAO_Batch', self::$_entityID, 'title');
-      CRM_Utils_System::setTitle(ts('Accounting Batch - %1', [1 => $batchTitle]));
+      $this->setTitle(ts('Accounting Batch - %1', [1 => $batchTitle]));
 
       $columnHeaders = [
         'created_by' => ts('Created By'),
index 00156171335fd739c237da41cf10c5e1ba7a5c71..8665b6fc2c3f71bc9db46dcc133c78a45d220d3d 100644 (file)
@@ -62,7 +62,7 @@ class CRM_Financial_Form_FinancialBatch extends CRM_Contribute_Form {
     $this->setPageTitle(ts('Financial Batch'));
     if (!empty($this->_id)) {
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $this->_id, 'title');
-      CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Accounting Batch'));
+      $this->setTitle($this->_title . ' - ' . ts('Accounting Batch'));
       $this->assign('batchTitle', $this->_title);
       $contactID = CRM_Core_DAO::getFieldValue('CRM_Batch_DAO_Batch', $this->_id, 'created_id');
       $contactName = CRM_Contact_BAO_Contact::displayName($contactID);
index dd5733ca2a4cd0399053fefda140d17f2d25328e..a3e66c76b4c50d7528ba9af86c6d7d979c0eefd8 100644 (file)
@@ -64,7 +64,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Core_Form {
     $this->_BAOName = 'CRM_Financial_BAO_FinancialTypeAccount';
     if ($this->_aid && ($this->_action & CRM_Core_Action::ADD)) {
       $this->_title = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialType', $this->_aid, 'name');
-      CRM_Utils_System::setTitle($this->_title . ' - ' . ts('Financial Accounts'));
+      $this->setTitle($this->_title . ' - ' . ts('Financial Accounts'));
 
       $session = CRM_Core_Session::singleton();
       $session->pushUserContext($url);
@@ -85,7 +85,7 @@ class CRM_Financial_Form_FinancialTypeAccount extends CRM_Core_Form {
     if ($this->_id) {
       $financialAccount = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_EntityFinancialAccount', $this->_id, 'financial_account_id');
       $fieldTitle = CRM_Core_DAO::getFieldValue('CRM_Financial_DAO_FinancialAccount', $financialAccount, 'name');
-      CRM_Utils_System::setTitle($fieldTitle . ' - ' . ts('Financial Type Accounts'));
+      $this->setTitle($fieldTitle . ' - ' . ts('Financial Type Accounts'));
     }
 
     $breadCrumb = [
index e0f30ed75efa289fe334b6951935ed8edb900be4..ae2eb0c00b242cd7d12d8df968c1ef3c89856fea 100644 (file)
@@ -84,7 +84,7 @@ class CRM_Financial_Form_PaymentEdit extends CRM_Core_Form {
    * Build quickForm.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Update Payment details'));
+    $this->setTitle(ts('Update Payment details'));
 
     $paymentFields = $this->getPaymentFields();
     $this->assign('paymentFields', $paymentFields);
index bd1f64288551e3325ef50d056f21319bdfe1fca7..0441951d1e00d4b89283e2644c5125c3b794604a 100644 (file)
@@ -140,7 +140,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
     $defaults['entity_table'] = $this->_entityTable;
 
     CRM_Friend_BAO_Friend::getValues($defaults);
-    CRM_Utils_System::setTitle(CRM_Utils_Array::value('title', $defaults));
+    $this->setTitle(CRM_Utils_Array::value('title', $defaults));
 
     $this->assign('title', CRM_Utils_Array::value('title', $defaults));
     $this->assign('intro', CRM_Utils_Array::value('intro', $defaults));
@@ -302,7 +302,7 @@ class CRM_Friend_Form extends CRM_Core_Form {
       }
     }
 
-    CRM_Utils_System::setTitle($defaults['thankyou_title']);
+    $this->setTitle($defaults['thankyou_title']);
     $this->assign('thankYouText', $defaults['thankyou_text']);
   }
 
index 801342f9e05cb811bf8f3b5f1e1e07ef3689a163..0afebfb8108840ceb44b764a47f8ce36453ca163 100644 (file)
@@ -122,7 +122,7 @@ class CRM_Group_Form_Edit extends CRM_Core_Form {
         catch (CRM_Core_Exception $e) {
           // If the group is borked the query might fail but delete should be possible.
         }
-        CRM_Utils_System::setTitle(ts('Confirm Group Delete'));
+        $this->setTitle(ts('Confirm Group Delete'));
       }
       if ($this->_groupValues['is_reserved'] == 1 && !CRM_Core_Permission::check('administer reserved groups')) {
         CRM_Core_Error::statusBounce(ts("You do not have sufficient permission to delete this reserved group."));
@@ -151,7 +151,7 @@ class CRM_Group_Form_Edit extends CRM_Core_Form {
 
         $this->assign_by_ref('group', $groupValues);
 
-        CRM_Utils_System::setTitle(ts('Group Settings: %1', array(1 => $this->_title)));
+        $this->setTitle(ts('Group Settings: %1', array(1 => $this->_title)));
       }
       $session = CRM_Core_Session::singleton();
       $session->pushUserContext(CRM_Utils_System::url('civicrm/group', 'reset=1'));
index e14304013457154dc5099ad03e9bb961a3f549b4..ac554fae91ca305fd265c4f2081082c8b3489fda 100644 (file)
@@ -73,7 +73,7 @@ class CRM_Mailing_Form_Approve extends CRM_Core_Form {
    */
   public function buildQuickform() {
     $title = ts('Approve/Reject Mailing') . " - {$this->_mailing->name}";
-    CRM_Utils_System::setTitle($title);
+    $this->setTitle($title);
 
     $this->addElement('textarea', 'approval_note', ts('Approve/Reject Note'));
 
index 66eb266871b45458273f0de03ca32b6932f73b88..416ecaf44db109e0f1ec962d06780c11cf9bddc6 100644 (file)
@@ -46,7 +46,7 @@ class CRM_Mailing_Form_ForwardMailing extends CRM_Core_Form {
     // Show the subject instead of the name here, since it's being
     // displayed to external contacts/users.
 
-    CRM_Utils_System::setTitle(ts('Forward Mailing: %1', [1 => $mailing->subject]));
+    $this->setTitle(ts('Forward Mailing: %1', [1 => $mailing->subject]));
 
     $this->set('queue_id', $queue_id);
     $this->set('job_id', $job_id);
index e809d497b76f73e090b193bfd6a50dbab7d5e580..07b8a2566e89da484dbcc7ebb4b3d5e2b8372911 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Mailing_Form_Optout extends CRM_Core_Form {
 
   public function buildQuickForm() {
     CRM_Utils_System::addHTMLHead('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
-    CRM_Utils_System::setTitle(ts('Opt Out Confirmation'));
+    $this->setTitle(ts('Opt Out Confirmation'));
 
     $this->add('text', 'email_confirm', ts('Verify email address to opt out:'));
     $this->addRule('email_confirm', ts('Email address is required to opt out.'), 'required');
index 4afec4edc65fd9f83031b2f166b57f8149274dab..2f045d42c71ace70e76998fad56fe51c602052f2 100644 (file)
@@ -43,7 +43,7 @@ SELECT   title, frontend_title, description, frontend_description
       $dao = CRM_Core_DAO::executeQuery($query);
       if ($dao->fetch()) {
         $this->assign('groupName', !empty($dao->frontend_title) ? $dao->frontend_title : $dao->title);
-        CRM_Utils_System::setTitle(ts('Subscribe to Mailing List - %1', [1 => !empty($dao->frontend_title) ? $dao->frontend_title : $dao->title]));
+        $this->setTitle(ts('Subscribe to Mailing List - %1', [1 => !empty($dao->frontend_title) ? $dao->frontend_title : $dao->title]));
       }
       else {
         CRM_Core_Error::statusBounce("The specified group is not configured for this action OR The group doesn't exist.");
@@ -53,7 +53,7 @@ SELECT   title, frontend_title, description, frontend_description
     }
     else {
       $this->assign('single', FALSE);
-      CRM_Utils_System::setTitle(ts('Mailing List Subscription'));
+      $this->setTitle(ts('Mailing List Subscription'));
     }
   }
 
index c63263ba0b9e73632fcb54a0be36cfab34dd67ab..72afaa5b999dfeb4fb1cecbb02487b55354236e5 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Mailing_Form_Unsubscribe extends CRM_Core_Form {
 
   public function buildQuickForm() {
     CRM_Utils_System::addHTMLHead('<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">');
-    CRM_Utils_System::setTitle(ts('Unsubscribe Confirmation'));
+    $this->setTitle(ts('Unsubscribe Confirmation'));
 
     $this->add('text', 'email_confirm', ts('Verify email address to unsubscribe:'));
     $this->addRule('email_confirm', ts('Email address is required to unsubscribe.'), 'required');