diff --git a/CRM/ACL/Form/WordPress/Permissions.php b/CRM/ACL/Form/WordPress/Permissions.php index 8301d13ddd70411a6c27517e78f227b15e2ec463..6c49a0037a4a63f149c095c9ba0fc6ae077dc829 100644 --- a/CRM/ACL/Form/WordPress/Permissions.php +++ b/CRM/ACL/Form/WordPress/Permissions.php @@ -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(); diff --git a/CRM/Activity/Form/Activity.php b/CRM/Activity/Form/Activity.php index 85650351dc695f4b2685a9a151027e1115831d06..ac0ba84beca7e78320c463ea2a30a1b89477bf20 100644 --- a/CRM/Activity/Form/Activity.php +++ b/CRM/Activity/Form/Activity.php @@ -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])); } } } diff --git a/CRM/Activity/Form/Task/Batch.php b/CRM/Activity/Form/Task/Batch.php index cfbe6ff23848d13ad0f4d0147a5be6057b3aee35..db778bf1d173c6b61c719329033e85de7401cc24 100644 --- a/CRM/Activity/Form/Task/Batch.php +++ b/CRM/Activity/Form/Task/Batch.php @@ -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 = []; diff --git a/CRM/Activity/Form/Task/FileOnCase.php b/CRM/Activity/Form/Task/FileOnCase.php index 58a15bc62e74ed6f94c6f1932c057de5c90fa81f..79bad07a9b15f1a9b7be78f538ab1bd74b82f60f 100644 --- a/CRM/Activity/Form/Task/FileOnCase.php +++ b/CRM/Activity/Form/Task/FileOnCase.php @@ -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')); } /** diff --git a/CRM/Activity/Form/Task/PickOption.php b/CRM/Activity/Form/Task/PickOption.php index f51e6dc09d09c7cbf44e80558965056199d04d7f..6bb2158deaaab8dbf9304bd29a7141063e7b7d23 100644 --- a/CRM/Activity/Form/Task/PickOption.php +++ b/CRM/Activity/Form/Task/PickOption.php @@ -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 diff --git a/CRM/Activity/Form/Task/PickProfile.php b/CRM/Activity/Form/Task/PickProfile.php index 5f484cf281383be9e547d470c7d716bce794460d..9d515ba8e122e32448d2e2eefb69ca295e050d63 100644 --- a/CRM/Activity/Form/Task/PickProfile.php +++ b/CRM/Activity/Form/Task/PickProfile.php @@ -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. diff --git a/CRM/Admin/Form/Job.php b/CRM/Admin/Form/Job.php index 26217bcdaf995a51872e3fb798ff77a2d439cbe9..f8e7afc4d82ad68443fa4b52ed44e3bb4baf5913 100644 --- a/CRM/Admin/Form/Job.php +++ b/CRM/Admin/Form/Job.php @@ -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', diff --git a/CRM/Admin/Form/MessageTemplates.php b/CRM/Admin/Form/MessageTemplates.php index f09041059658171e045255f113f31e07160db4b8..1c2fcd199bdf200d532094686ba950d5e6fa3906 100644 --- a/CRM/Admin/Form/MessageTemplates.php +++ b/CRM/Admin/Form/MessageTemplates.php @@ -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')); } } diff --git a/CRM/Admin/Form/OptionGroup.php b/CRM/Admin/Form/OptionGroup.php index d9816404258686140201a02b91e2f32567b06c56..8cb2a62f5e4bfdf411895225f6bc56490d961db6 100644 --- a/CRM/Admin/Form/OptionGroup.php +++ b/CRM/Admin/Form/OptionGroup.php @@ -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'); diff --git a/CRM/Admin/Form/Setting/Case.php b/CRM/Admin/Form/Setting/Case.php index 58331a8b2f95bfda4ff84271a96dffda92c9d1a1..6ab3a59dd823f41ab098284995cc2532b0a0bfaa 100644 --- a/CRM/Admin/Form/Setting/Case.php +++ b/CRM/Admin/Form/Setting/Case.php @@ -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(); } diff --git a/CRM/Admin/Form/Setting/Date.php b/CRM/Admin/Form/Setting/Date.php index bf497fb42e75df38a39eaa4764f4595d3b337e75..a85078cd829fa9604eca0a2258c5a8fae969d8a3 100644 --- a/CRM/Admin/Form/Setting/Date.php +++ b/CRM/Admin/Form/Setting/Date.php @@ -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(); } diff --git a/CRM/Admin/Form/Setting/Debugging.php b/CRM/Admin/Form/Setting/Debugging.php index 4fe2b7b1a84bdedc3f10088bee5752949ee518ab..53cec8c6c62981f78a34dd3a92b5628024c28c9a 100644 --- a/CRM/Admin/Form/Setting/Debugging.php +++ b/CRM/Admin/Form/Setting/Debugging.php @@ -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; } diff --git a/CRM/Admin/Form/Setting/Localization.php b/CRM/Admin/Form/Setting/Localization.php index 53a26fe99bbc2678a7343c7d97ccf2d7a05298a2..5cd32ae5515f6ed8c39bf46c67d43177efcadda8 100644 --- a/CRM/Admin/Form/Setting/Localization.php +++ b/CRM/Admin/Form/Setting/Localization.php @@ -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(); diff --git a/CRM/Admin/Form/Setting/Mail.php b/CRM/Admin/Form/Setting/Mail.php index eb99863fc4c1492025bae68ff32f837ee7dd608b..4bfe45d35aa8076b644c779bc66d56e468686ab7 100644 --- a/CRM/Admin/Form/Setting/Mail.php +++ b/CRM/Admin/Form/Setting/Mail.php @@ -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(); } diff --git a/CRM/Admin/Form/Setting/Mapping.php b/CRM/Admin/Form/Setting/Mapping.php index e6bbea5ea10d8305bc7aff87e5b69802eaf66cf5..07071e0d6c0feb6ede7225ea3674034a0c46e2a9 100644 --- a/CRM/Admin/Form/Setting/Mapping.php +++ b/CRM/Admin/Form/Setting/Mapping.php @@ -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(); } diff --git a/CRM/Admin/Form/Setting/Miscellaneous.php b/CRM/Admin/Form/Setting/Miscellaneous.php index c1e2498251dc00737981c4e7e7df033bb48fc656..1540e6a52d3e7c736534908313b1a3795c0c0848 100644 --- a/CRM/Admin/Form/Setting/Miscellaneous.php +++ b/CRM/Admin/Form/Setting/Miscellaneous.php @@ -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. diff --git a/CRM/Admin/Form/Setting/Path.php b/CRM/Admin/Form/Setting/Path.php index aa17363a29141ec19db4856b2014b9318cf53e46..19c4de702350ce32e9afce45c4f07217d4a77799 100644 --- a/CRM/Admin/Form/Setting/Path.php +++ b/CRM/Admin/Form/Setting/Path.php @@ -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 = [ diff --git a/CRM/Admin/Form/Setting/Search.php b/CRM/Admin/Form/Setting/Search.php index ee4d855af9cd334bba53a5b524032ef7cba6f846..8b1aaa21be830982b34a90fceea282435d330fd0 100644 --- a/CRM/Admin/Form/Setting/Search.php +++ b/CRM/Admin/Form/Setting/Search.php @@ -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(); diff --git a/CRM/Admin/Form/Setting/Smtp.php b/CRM/Admin/Form/Setting/Smtp.php index 6877f201f83a1ab5bdb181d694d4888d599950ba..cf44ea62d6af447b891f7750a53fdce7b22ba669 100644 --- a/CRM/Admin/Form/Setting/Smtp.php +++ b/CRM/Admin/Form/Setting/Smtp.php @@ -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)); diff --git a/CRM/Admin/Form/Setting/UF.php b/CRM/Admin/Form/Setting/UF.php index c59013a076396498c19fd22c76251850acfa17cc..6ffda9f2298cdf37472b1a619414caeb0b08b462 100644 --- a/CRM/Admin/Form/Setting/UF.php +++ b/CRM/Admin/Form/Setting/UF.php @@ -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]) ); diff --git a/CRM/Admin/Form/Setting/UpdateConfigBackend.php b/CRM/Admin/Form/Setting/UpdateConfigBackend.php index a4f73d6cb602ff85868467b4b68a34a61eed6a03..a1f2683b2bf5ae9b6861b5a0bb82fd48a54fc294 100644 --- a/CRM/Admin/Form/Setting/UpdateConfigBackend.php +++ b/CRM/Admin/Form/Setting/UpdateConfigBackend.php @@ -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([ [ diff --git a/CRM/Admin/Form/Setting/Url.php b/CRM/Admin/Form/Setting/Url.php index a81c1e5313e04d8a83dc19745b410b9e88e13f45..ae9aa930843e99b2d7b66160a4d7711c75cfd2c0 100644 --- a/CRM/Admin/Form/Setting/Url.php +++ b/CRM/Admin/Form/Setting/Url.php @@ -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, ]); diff --git a/CRM/Batch/Form/Entry.php b/CRM/Batch/Form/Entry.php index 3a9db9c8817933f549c1e545b297c4b5059ae5df..39b4586ad4858a81254246c1b8a92bdb580da7f5 100644 --- a/CRM/Batch/Form/Entry.php +++ b/CRM/Batch/Form/Entry.php @@ -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); diff --git a/CRM/Campaign/Form/Campaign.php b/CRM/Campaign/Form/Campaign.php index d6e7e2e03c5991995240a5a5890bf989b471ddde..e558d4502bba90999031c2af9a20d176ecb02515 100644 --- a/CRM/Campaign/Form/Campaign.php +++ b/CRM/Campaign/Form/Campaign.php @@ -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(); diff --git a/CRM/Campaign/Form/Gotv.php b/CRM/Campaign/Form/Gotv.php index cea96a40baf30300c7d5a5565560f4e18d7ba607..870f0ea381b5c5055c7826d5973793cc68ebb1ae 100644 --- a/CRM/Campaign/Form/Gotv.php +++ b/CRM/Campaign/Form/Gotv.php @@ -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)')); } /** diff --git a/CRM/Campaign/Form/Petition.php b/CRM/Campaign/Form/Petition.php index 4cb12eed34ba28ce5097bee70b67d5ce1591b6ae..021b4785d5f0547151cb3f81becb785a245ac2f1 100644 --- a/CRM/Campaign/Form/Petition.php +++ b/CRM/Campaign/Form/Petition.php @@ -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')); } } diff --git a/CRM/Campaign/Form/Petition/Signature.php b/CRM/Campaign/Form/Petition/Signature.php index 2d1e5df0a10adaea0f17d282c1b064c8345d2c9a..f4a3d14a79080992f4abc2ef6d78d203292c7c57 100644 --- a/CRM/Campaign/Form/Petition/Signature.php +++ b/CRM/Campaign/Form/Petition/Signature.php @@ -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']); } /** diff --git a/CRM/Campaign/Form/Search.php b/CRM/Campaign/Form/Search.php index e110db8d6e983de424cd01d8b03facc3ab0b2d1b..5244c8b904d31abe43ec1a101fdbadfcaf22c5ab 100644 --- a/CRM/Campaign/Form/Search.php +++ b/CRM/Campaign/Form/Search.php @@ -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)))); } /** diff --git a/CRM/Campaign/Form/Search/Campaign.php b/CRM/Campaign/Form/Search/Campaign.php index a6cc366820bb8c7845a2a8267b6d859c2a3838b3..3778ccea929b02e47cf88f50e9ea9b74fa5540b7 100644 --- a/CRM/Campaign/Form/Search/Campaign.php +++ b/CRM/Campaign/Form/Search/Campaign.php @@ -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')); } /** diff --git a/CRM/Campaign/Form/Search/Petition.php b/CRM/Campaign/Form/Search/Petition.php index 438b885dbfd1f2723ea517b9cf5629a1ac1a2020..49b94a12265f724001c5ce784d1b6f308339fc63 100644 --- a/CRM/Campaign/Form/Search/Petition.php +++ b/CRM/Campaign/Form/Search/Petition.php @@ -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')); } /** diff --git a/CRM/Campaign/Form/Search/Survey.php b/CRM/Campaign/Form/Search/Survey.php index 968b99eafafda2679d343f9cf1672dcda94fc6fc..6ad51606c7721f067b51c202bd1bded2f35f7791 100644 --- a/CRM/Campaign/Form/Search/Survey.php +++ b/CRM/Campaign/Form/Search/Survey.php @@ -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')); } /** diff --git a/CRM/Campaign/Form/Survey.php b/CRM/Campaign/Form/Survey.php index 212ed03148e13c33a66c565be6581ca2cbcf46c3..a15aa03dea9a6b36ebe863d6c94802f616c99efc 100644 --- a/CRM/Campaign/Form/Survey.php +++ b/CRM/Campaign/Form/Survey.php @@ -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); diff --git a/CRM/Campaign/Form/Survey/Delete.php b/CRM/Campaign/Form/Survey/Delete.php index db6dd1148811160836b25ffde4e77c2f540c4b2e..16715221eaae2f2fb1e414b6ffc98aa6575effbd 100644 --- a/CRM/Campaign/Form/Survey/Delete.php +++ b/CRM/Campaign/Form/Survey/Delete.php @@ -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); } /** diff --git a/CRM/Campaign/Form/Survey/Main.php b/CRM/Campaign/Form/Survey/Main.php index 0838d9a3cf7c7d1e94a37b5be9e43cdc119d722e..44b760763e68aaaf691d87fb3618ff8f0468b8cb 100644 --- a/CRM/Campaign/Form/Survey/Main.php +++ b/CRM/Campaign/Form/Survey/Main.php @@ -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 diff --git a/CRM/Campaign/Form/Task/Interview.php b/CRM/Campaign/Form/Task/Interview.php index 19df2380e9e387167bec0bbbfda749fe0d2ae141..b57daae79e1cfd57ecaf341a4753c075f5b4fb7f 100644 --- a/CRM/Campaign/Form/Task/Interview.php +++ b/CRM/Campaign/Form/Task/Interview.php @@ -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() { diff --git a/CRM/Campaign/Form/Task/Release.php b/CRM/Campaign/Form/Task/Release.php index 4607e2154a08deac8d665b34b9cd2254bbdaa4cc..4f5605379943d31f47a382ce26245c4958866c05 100644 --- a/CRM/Campaign/Form/Task/Release.php +++ b/CRM/Campaign/Form/Task/Release.php @@ -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')); } /** diff --git a/CRM/Campaign/Form/Task/Reserve.php b/CRM/Campaign/Form/Task/Reserve.php index b0b814b6905a8c8c806d3b4935b3388f1f802830..97c1b72d060178167a6a49ef2f9723221ef3b59f 100644 --- a/CRM/Campaign/Form/Task/Reserve.php +++ b/CRM/Campaign/Form/Task/Reserve.php @@ -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() {