Switch to CRM_Core_Form::setTitle() instead of CRM_Utils_System::setTitle() part 1
authorMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 20 Aug 2021 12:11:05 +0000 (13:11 +0100)
committerMatthew Wire <mjw@mjwconsult.co.uk>
Fri, 20 Aug 2021 12:20:09 +0000 (13:20 +0100)
37 files changed:
CRM/ACL/Form/WordPress/Permissions.php
CRM/Activity/Form/Activity.php
CRM/Activity/Form/Task/Batch.php
CRM/Activity/Form/Task/FileOnCase.php
CRM/Activity/Form/Task/PickOption.php
CRM/Activity/Form/Task/PickProfile.php
CRM/Admin/Form/Job.php
CRM/Admin/Form/MessageTemplates.php
CRM/Admin/Form/OptionGroup.php
CRM/Admin/Form/Setting/Case.php
CRM/Admin/Form/Setting/Date.php
CRM/Admin/Form/Setting/Debugging.php
CRM/Admin/Form/Setting/Localization.php
CRM/Admin/Form/Setting/Mail.php
CRM/Admin/Form/Setting/Mapping.php
CRM/Admin/Form/Setting/Miscellaneous.php
CRM/Admin/Form/Setting/Path.php
CRM/Admin/Form/Setting/Search.php
CRM/Admin/Form/Setting/Smtp.php
CRM/Admin/Form/Setting/UF.php
CRM/Admin/Form/Setting/UpdateConfigBackend.php
CRM/Admin/Form/Setting/Url.php
CRM/Batch/Form/Entry.php
CRM/Campaign/Form/Campaign.php
CRM/Campaign/Form/Gotv.php
CRM/Campaign/Form/Petition.php
CRM/Campaign/Form/Petition/Signature.php
CRM/Campaign/Form/Search.php
CRM/Campaign/Form/Search/Campaign.php
CRM/Campaign/Form/Search/Petition.php
CRM/Campaign/Form/Search/Survey.php
CRM/Campaign/Form/Survey.php
CRM/Campaign/Form/Survey/Delete.php
CRM/Campaign/Form/Survey/Main.php
CRM/Campaign/Form/Task/Interview.php
CRM/Campaign/Form/Task/Release.php
CRM/Campaign/Form/Task/Reserve.php

index 8301d13ddd70411a6c27517e78f227b15e2ec463..6c49a0037a4a63f149c095c9ba0fc6ae077dc829 100644 (file)
@@ -30,7 +30,7 @@ class CRM_ACL_Form_WordPress_Permissions extends CRM_Core_Form {
    */
   public function buildQuickForm() {
 
-    CRM_Utils_System::setTitle('WordPress Access Control');
+    $this->setTitle('WordPress Access Control');
 
     // Get the core permissions array
     $permissionsArray = self::getPermissionArray();
index 85650351dc695f4b2685a9a151027e1115831d06..ac0ba84beca7e78320c463ea2a30a1b89477bf20 100644 (file)
@@ -1243,10 +1243,10 @@ class CRM_Activity_Form_Activity extends CRM_Contact_Form_Task {
           if (CRM_Contact_BAO_Contact::checkDomainContact($this->_currentlyViewedContactId)) {
             $displayName .= ' (' . ts('default organization') . ')';
           }
-          CRM_Utils_System::setTitle($displayName . ' - ' . $activityTypeDisplayLabel);
+          $this->setTitle($displayName . ' - ' . $activityTypeDisplayLabel);
         }
         else {
-          CRM_Utils_System::setTitle(ts('%1 Activity', [1 => $activityTypeDisplayLabel]));
+          $this->setTitle(ts('%1 Activity', [1 => $activityTypeDisplayLabel]));
         }
       }
     }
index cfbe6ff23848d13ad0f4d0147a5be6057b3aee35..db778bf1d173c6b61c719329033e85de7401cc24 100644 (file)
@@ -90,7 +90,7 @@ class CRM_Activity_Form_Task_Batch extends CRM_Activity_Form_Task {
       throw new CRM_Core_Exception('The profile id is missing');
     }
     $this->_title = ts('Update multiple activities') . ' - ' . CRM_Core_BAO_UFGroup::getTitle($ufGroupId);
-    CRM_Utils_System::setTitle($this->_title);
+    $this->setTitle($this->_title);
 
     $this->addDefaultButtons(ts('Save'));
     $this->_fields = [];
index 58a15bc62e74ed6f94c6f1932c057de5c90fa81f..79bad07a9b15f1a9b7be78f538ab1bd74b82f60f 100644 (file)
@@ -52,7 +52,7 @@ class CRM_Activity_Form_Task_FileOnCase extends CRM_Activity_Form_Task {
     $session = CRM_Core_Session::singleton();
     $this->_userContext = $session->readUserContext();
 
-    CRM_Utils_System::setTitle(ts('File on Case'));
+    $this->setTitle(ts('File on Case'));
   }
 
   /**
index f51e6dc09d09c7cbf44e80558965056199d04d7f..6bb2158deaaab8dbf9304bd29a7141063e7b7d23 100644 (file)
@@ -60,7 +60,7 @@ class CRM_Activity_Form_Task_PickOption extends CRM_Activity_Form_Task {
     $session = CRM_Core_Session::singleton();
     $this->_userContext = $session->readUserContext();
 
-    CRM_Utils_System::setTitle(ts('Send Email to Contacts'));
+    $this->setTitle(ts('Send Email to Contacts'));
 
     $validate = FALSE;
     //validations
index 5f484cf281383be9e547d470c7d716bce794460d..9d515ba8e122e32448d2e2eefb69ca295e050d63 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Activity_Form_Task_PickProfile extends CRM_Activity_Form_Task {
     $session = CRM_Core_Session::singleton();
     $this->_userContext = $session->readUserContext();
 
-    CRM_Utils_System::setTitle(ts('Update multiple activities'));
+    $this->setTitle(ts('Update multiple activities'));
 
     $validate = FALSE;
     // Validations.
index 26217bcdaf995a51872e3fb798ff77a2d439cbe9..f8e7afc4d82ad68443fa4b52ed44e3bb4baf5913 100644 (file)
@@ -31,7 +31,7 @@ class CRM_Admin_Form_Job extends CRM_Admin_Form {
     parent::preProcess();
     $this->setContext();
 
-    CRM_Utils_System::setTitle(ts('Manage - Scheduled Jobs'));
+    $this->setTitle(ts('Manage - Scheduled Jobs'));
 
     if ($this->_id) {
       $refreshURL = CRM_Utils_System::url('civicrm/admin/job',
index f09041059658171e045255f113f31e07160db4b8..1c2fcd199bdf200d532094686ba950d5e6fa3906 100644 (file)
@@ -213,7 +213,7 @@ class CRM_Admin_Form_MessageTemplates extends CRM_Core_Form {
 
     if ($this->_action & CRM_Core_Action::VIEW) {
       $this->freeze();
-      CRM_Utils_System::setTitle(ts('View System Default Message Template'));
+      $this->setTitle(ts('View System Default Message Template'));
     }
   }
 
index d9816404258686140201a02b91e2f32567b06c56..8cb2a62f5e4bfdf411895225f6bc56490d961db6 100644 (file)
@@ -40,7 +40,7 @@ class CRM_Admin_Form_OptionGroup extends CRM_Admin_Form {
     if ($this->_action & CRM_Core_Action::DELETE) {
       return;
     }
-    CRM_Utils_System::setTitle(ts('Dropdown Options'));
+    $this->setTitle(ts('Dropdown Options'));
 
     $this->applyFilter('__ALL__', 'trim');
 
index 58331a8b2f95bfda4ff84271a96dffda92c9d1a1..6ab3a59dd823f41ab098284995cc2532b0a0bfaa 100644 (file)
@@ -32,7 +32,7 @@ class CRM_Admin_Form_Setting_Case extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - CiviCase'));
+    $this->setTitle(ts('Settings - CiviCase'));
     parent::buildQuickForm();
   }
 
index bf497fb42e75df38a39eaa4764f4595d3b337e75..a85078cd829fa9604eca0a2258c5a8fae969d8a3 100644 (file)
@@ -38,7 +38,7 @@ class CRM_Admin_Form_Setting_Date extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Date'));
+    $this->setTitle(ts('Settings - Date'));
 
     parent::buildQuickForm();
   }
index 4fe2b7b1a84bdedc3f10088bee5752949ee518ab..53cec8c6c62981f78a34dd3a92b5628024c28c9a 100644 (file)
@@ -32,7 +32,7 @@ class CRM_Admin_Form_Setting_Debugging extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts(' Settings - Debugging and Error Handling '));
+    $this->setTitle(ts(' Settings - Debugging and Error Handling '));
     if (CRM_Core_Config::singleton()->userSystem->supports_UF_Logging == '1') {
       $this->_settings['userFrameworkLogging'] = CRM_Core_BAO_Setting::DEVELOPER_PREFERENCES_NAME;
     }
index 53a26fe99bbc2678a7343c7d97ccf2d7a05298a2..5cd32ae5515f6ed8c39bf46c67d43177efcadda8 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Admin_Form_Setting_Localization extends CRM_Admin_Form_Setting {
   public function buildQuickForm() {
     $config = CRM_Core_Config::singleton();
 
-    CRM_Utils_System::setTitle(ts('Settings - Localization'));
+    $this->setTitle(ts('Settings - Localization'));
 
     $warningTitle = json_encode(ts("Warning"));
     $defaultLocaleOptions = CRM_Admin_Form_Setting_Localization::getDefaultLocaleOptions();
index eb99863fc4c1492025bae68ff32f837ee7dd608b..4bfe45d35aa8076b644c779bc66d56e468686ab7 100644 (file)
@@ -35,7 +35,7 @@ class CRM_Admin_Form_Setting_Mail extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - CiviMail'));
+    $this->setTitle(ts('Settings - CiviMail'));
     $this->addFormRule(['CRM_Admin_Form_Setting_Mail', 'formRule']);
     parent::buildQuickForm();
   }
index e6bbea5ea10d8305bc7aff87e5b69802eaf66cf5..07071e0d6c0feb6ede7225ea3674034a0c46e2a9 100644 (file)
@@ -31,7 +31,7 @@ class CRM_Admin_Form_Setting_Mapping extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Mapping and Geocoding Providers'));
+    $this->setTitle(ts('Settings - Mapping and Geocoding Providers'));
     parent::buildQuickForm();
   }
 
index c1e2498251dc00737981c4e7e7df033bb48fc656..1540e6a52d3e7c736534908313b1a3795c0c0848 100644 (file)
@@ -65,7 +65,7 @@ class CRM_Admin_Form_Setting_Miscellaneous extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Misc (Undelete, PDFs, Limits, Logging, etc.)'));
+    $this->setTitle(ts('Misc (Undelete, PDFs, Limits, Logging, etc.)'));
 
     $this->assign('validTriggerPermission', CRM_Core_DAO::checkTriggerViewPermission(FALSE));
     // dev/core#1812 Assign multilingual status.
index aa17363a29141ec19db4856b2014b9318cf53e46..19c4de702350ce32e9afce45c4f07217d4a77799 100644 (file)
@@ -35,7 +35,7 @@ class CRM_Admin_Form_Setting_Path extends CRM_Admin_Form_Setting {
    * @throws \CRM_Core_Exception
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Upload Directories'));
+    $this->setTitle(ts('Settings - Upload Directories'));
     parent::buildQuickForm();
 
     $directories = [
index ee4d855af9cd334bba53a5b524032ef7cba6f846..8b1aaa21be830982b34a90fceea282435d330fd0 100644 (file)
@@ -42,7 +42,7 @@ class CRM_Admin_Form_Setting_Search extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Search Preferences'));
+    $this->setTitle(ts('Settings - Search Preferences'));
 
     parent::buildQuickForm();
 
index 6877f201f83a1ab5bdb181d694d4888d599950ba..cf44ea62d6af447b891f7750a53fdce7b22ba669 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Admin_Form_Setting_Smtp extends CRM_Admin_Form_Setting {
     ];
     $this->addRadio('outBound_option', ts('Select Mailer'), $outBoundOption, $props['outBound_option'] ?? []);
 
-    CRM_Utils_System::setTitle(ts('Settings - Outbound Mail'));
+    $this->setTitle(ts('Settings - Outbound Mail'));
     $this->add('text', 'sendmail_path', ts('Sendmail Path'));
     $this->add('text', 'sendmail_args', ts('Sendmail Argument'));
     $this->add('text', 'smtpServer', ts('SMTP Server'), CRM_Utils_Array::value('smtpServer', $props));
index c59013a076396498c19fd22c76251850acfa17cc..6ffda9f2298cdf37472b1a619414caeb0b08b462 100644 (file)
@@ -36,7 +36,7 @@ class CRM_Admin_Form_Setting_UF extends CRM_Admin_Form_Setting {
       $this->_settings['wpBasePage'] = CRM_Core_BAO_Setting::SYSTEM_PREFERENCES_NAME;
     }
 
-    CRM_Utils_System::setTitle(
+    $this->setTitle(
       ts('Settings - %1 Integration', [1 => $this->_uf])
     );
 
index a4f73d6cb602ff85868467b4b68a34a61eed6a03..a1f2683b2bf5ae9b6861b5a0bb82fd48a54fc294 100644 (file)
@@ -24,7 +24,7 @@ class CRM_Admin_Form_Setting_UpdateConfigBackend extends CRM_Admin_Form_Setting
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Cleanup Caches and Update Paths'));
+    $this->setTitle(ts('Settings - Cleanup Caches and Update Paths'));
 
     $this->addButtons([
       [
index a81c1e5313e04d8a83dc19745b410b9e88e13f45..ae9aa930843e99b2d7b66160a4d7711c75cfd2c0 100644 (file)
@@ -32,7 +32,7 @@ class CRM_Admin_Form_Setting_Url extends CRM_Admin_Form_Setting {
    * Build the form object.
    */
   public function buildQuickForm() {
-    CRM_Utils_System::setTitle(ts('Settings - Resource URLs'));
+    $this->setTitle(ts('Settings - Resource URLs'));
     $settingFields = civicrm_api('setting', 'getfields', [
       'version' => 3,
     ]);
index 3a9db9c8817933f549c1e545b297c4b5059ae5df..39b4586ad4858a81254246c1b8a92bdb580da7f5 100644 (file)
@@ -231,13 +231,13 @@ class CRM_Batch_Form_Entry extends CRM_Core_Form {
     $batchTypes = CRM_Core_PseudoConstant::get('CRM_Batch_DAO_Batch', 'type_id', ['flip' => 1], 'validate');
     // get the profile information
     if ($this->_batchInfo['type_id'] == $batchTypes['Contribution']) {
-      CRM_Utils_System::setTitle(ts('Batch Data Entry for Contributions'));
+      $this->setTitle(ts('Batch Data Entry for Contributions'));
     }
     elseif ($this->_batchInfo['type_id'] == $batchTypes['Membership']) {
-      CRM_Utils_System::setTitle(ts('Batch Data Entry for Memberships'));
+      $this->setTitle(ts('Batch Data Entry for Memberships'));
     }
     elseif ($this->_batchInfo['type_id'] == $batchTypes['Pledge Payment']) {
-      CRM_Utils_System::setTitle(ts('Batch Data Entry for Pledge Payments'));
+      $this->setTitle(ts('Batch Data Entry for Pledge Payments'));
     }
 
     $this->_fields = CRM_Core_BAO_UFGroup::getFields($this->_profileId, FALSE, CRM_Core_Action::VIEW);
index d6e7e2e03c5991995240a5a5890bf989b471ddde..e558d4502bba90999031c2af9a20d176ecb02515 100644 (file)
@@ -75,7 +75,7 @@ class CRM_Campaign_Form_Campaign extends CRM_Core_Form {
       $title = ts('Delete Campaign');
     }
     if ($title) {
-      CRM_Utils_System::setTitle($title);
+      $this->setTitle($title);
     }
 
     $session = CRM_Core_Session::singleton();
index cea96a40baf30300c7d5a5565560f4e18d7ba607..870f0ea381b5c5055c7826d5973793cc68ebb1ae 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Campaign_Form_Gotv extends CRM_Core_Form {
     }
 
     //set the form title.
-    CRM_Utils_System::setTitle(ts('GOTV (Voter Tracking)'));
+    $this->setTitle(ts('GOTV (Voter Tracking)'));
   }
 
   /**
index 4cb12eed34ba28ce5097bee70b67d5ce1591b6ae..021b4785d5f0547151cb3f81becb785a245ac2f1 100644 (file)
@@ -57,10 +57,10 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
       $this->_surveyId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
 
       if ($this->_action & CRM_Core_Action::UPDATE) {
-        CRM_Utils_System::setTitle(ts('Edit Survey'));
+        $this->setTitle(ts('Edit Survey'));
       }
       else {
-        CRM_Utils_System::setTitle(ts('Delete Survey'));
+        $this->setTitle(ts('Delete Survey'));
       }
     }
 
@@ -89,10 +89,10 @@ class CRM_Campaign_Form_Petition extends CRM_Core_Form {
       $this->_surveyId = CRM_Utils_Request::retrieve('id', 'Positive', $this, TRUE);
 
       if ($this->_action & CRM_Core_Action::UPDATE) {
-        CRM_Utils_System::setTitle(ts('Edit Petition'));
+        $this->setTitle(ts('Edit Petition'));
       }
       else {
-        CRM_Utils_System::setTitle(ts('Delete Petition'));
+        $this->setTitle(ts('Delete Petition'));
       }
     }
 
index 2d1e5df0a10adaea0f17d282c1b064c8345d2c9a..f4a3d14a79080992f4abc2ef6d78d203292c7c57 100644 (file)
@@ -230,7 +230,7 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
     }
 
     $this->setDefaultValues();
-    CRM_Utils_System::setTitle($this->petition['title']);
+    $this->setTitle($this->petition['title']);
   }
 
   /**
index e110db8d6e983de424cd01d8b03facc3ab0b2d1b..5244c8b904d31abe43ec1a101fdbadfcaf22c5ab 100644 (file)
@@ -144,7 +144,7 @@ class CRM_Campaign_Form_Search extends CRM_Core_Form_Search {
     }
 
     //set the form title.
-    CRM_Utils_System::setTitle(ts('Find Respondents To %1', array(1 => ucfirst($this->_operation))));
+    $this->setTitle(ts('Find Respondents To %1', array(1 => ucfirst($this->_operation))));
   }
 
   /**
index a6cc366820bb8c7845a2a8267b6d859c2a3838b3..3778ccea929b02e47cf88f50e9ea9b74fa5540b7 100644 (file)
@@ -54,7 +54,7 @@ class CRM_Campaign_Form_Search_Campaign extends CRM_Core_Form {
     $this->assign('suppressForm', TRUE);
 
     //set the form title.
-    CRM_Utils_System::setTitle(ts('Find Campaigns'));
+    $this->setTitle(ts('Find Campaigns'));
   }
 
   /**
index 438b885dbfd1f2723ea517b9cf5629a1ac1a2020..49b94a12265f724001c5ce784d1b6f308339fc63 100644 (file)
@@ -44,7 +44,7 @@ class CRM_Campaign_Form_Search_Petition extends CRM_Core_Form {
     $this->assign('suppressForm', TRUE);
 
     //set the form title.
-    CRM_Utils_System::setTitle(ts('Find Petition'));
+    $this->setTitle(ts('Find Petition'));
   }
 
   /**
index 968b99eafafda2679d343f9cf1672dcda94fc6fc..6ad51606c7721f067b51c202bd1bded2f35f7791 100644 (file)
@@ -45,7 +45,7 @@ class CRM_Campaign_Form_Search_Survey extends CRM_Core_Form {
     $this->assign('suppressForm', TRUE);
 
     //set the form title.
-    CRM_Utils_System::setTitle(ts('Find Survey'));
+    $this->setTitle(ts('Find Survey'));
   }
 
   /**
index 212ed03148e13c33a66c565be6581ca2cbcf46c3..a15aa03dea9a6b36ebe863d6c94802f616c99efc 100644 (file)
@@ -72,7 +72,7 @@ class CRM_Campaign_Form_Survey extends CRM_Core_Form {
       CRM_Campaign_BAO_Survey::retrieve($params, $surveyInfo);
       $this->_surveyTitle = $surveyInfo['title'];
       $this->assign('surveyTitle', $this->_surveyTitle);
-      CRM_Utils_System::setTitle(ts('Configure Survey - %1', [1 => $this->_surveyTitle]));
+      $this->setTitle(ts('Configure Survey - %1', [1 => $this->_surveyTitle]));
     }
 
     $this->assign('action', $this->_action);
index db6dd1148811160836b25ffde4e77c2f540c4b2e..16715221eaae2f2fb1e414b6ffc98aa6575effbd 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Campaign_Form_Survey_Delete extends CRM_Core_Form {
     CRM_Campaign_BAO_Survey::retrieve($params, $surveyInfo);
     $this->_surveyTitle = $surveyInfo['title'];
     $this->assign('surveyTitle', $this->_surveyTitle);
-    CRM_Utils_System::setTitle(ts('Delete Survey') . ' - ' . $this->_surveyTitle);
+    $this->setTitle(ts('Delete Survey') . ' - ' . $this->_surveyTitle);
   }
 
   /**
index 0838d9a3cf7c7d1e94a37b5be9e43cdc119d722e..44b760763e68aaaf691d87fb3618ff8f0468b8cb 100644 (file)
@@ -47,7 +47,7 @@ class CRM_Campaign_Form_Survey_Main extends CRM_Campaign_Form_Survey {
     $this->_action = CRM_Utils_Request::retrieve('action', 'String', $this);
 
     if ($this->_action & CRM_Core_Action::UPDATE) {
-      CRM_Utils_System::setTitle(ts('Configure Survey') . ' - ' . $this->_surveyTitle);
+      $this->setTitle(ts('Configure Survey') . ' - ' . $this->_surveyTitle);
     }
 
     // Add custom data to form
index 19df2380e9e387167bec0bbbfda749fe0d2ae141..b57daae79e1cfd57ecaf341a4753c075f5b4fb7f 100644 (file)
@@ -235,7 +235,7 @@ WHERE {$clause}
     //set the title.
     $this->_surveyTypeId = $this->_surveyValues['activity_type_id'] ?? NULL;
     $surveyTypeLabel = CRM_Core_PseudoConstant::getLabel('CRM_Activity_BAO_Activity', 'activity_type_id', $this->_surveyTypeId);
-    CRM_Utils_System::setTitle(ts('Record %1 Responses', [1 => $surveyTypeLabel]));
+    $this->setTitle(ts('Record %1 Responses', [1 => $surveyTypeLabel]));
   }
 
   public function validateIds() {
index 4607e2154a08deac8d665b34b9cd2254bbdaa4cc..4f5605379943d31f47a382ce26245c4958866c05 100644 (file)
@@ -109,7 +109,7 @@ class CRM_Campaign_Form_Task_Release extends CRM_Campaign_Form_Task {
     }
 
     //set the title.
-    CRM_Utils_System::setTitle(ts('Release Respondents'));
+    $this->setTitle(ts('Release Respondents'));
   }
 
   /**
index b0b814b6905a8c8c806d3b4935b3388f1f802830..97c1b72d060178167a6a49ef2f9723221ef3b59f 100644 (file)
@@ -99,7 +99,7 @@ class CRM_Campaign_Form_Task_Reserve extends CRM_Campaign_Form_Task {
     }
 
     //set the title.
-    CRM_Utils_System::setTitle(ts('Reserve Respondents'));
+    $this->setTitle(ts('Reserve Respondents'));
   }
 
   public function validateSurvey() {