Skip to content

Commit

Permalink
Merge pull request #26806 from larssandergreen/Standardize-admin-brea…
Browse files Browse the repository at this point in the history
…dcrumbs

Standardize title as Administer in breadcrumbs and on main Administer page
  • Loading branch information
mlutfy authored Jul 14, 2023
2 parents 8335af0 + 6d1952e commit 6b45a5f
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CRM/Admin/Page/Job.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ public function run() {
CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs'));
CRM_Utils_System::appendBreadCrumb([
[
'title' => ts('Administer CiviCRM'),
'title' => ts('Administer'),
'url' => CRM_Utils_System::url('civicrm/admin', 'reset=1'),
],
]);
Expand Down
2 changes: 1 addition & 1 deletion CRM/Admin/Page/JobLog.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public function run(): void {
CRM_Utils_System::setTitle(ts('Settings - Scheduled Jobs Log'));
CRM_Utils_System::appendBreadCrumb([
[
'title' => ts('Administration'),
'title' => ts('Administer'),
'url' => CRM_Utils_System::url('civicrm/admin',
'reset=1'
),
Expand Down
2 changes: 1 addition & 1 deletion CRM/Admin/Page/PaymentProcessor.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public function run() {
CRM_Utils_System::setTitle(ts('Settings - Payment Processor'));
$breadCrumb = [
[
'title' => ts('Administration'),
'title' => ts('Administer'),
'url' => CRM_Utils_System::url('civicrm/admin',
'reset=1'
),
Expand Down
2 changes: 1 addition & 1 deletion CRM/Contact/Form/Domain.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public function getDefaultContext(): string {
public function preProcess() {
$this->setTitle(ts('Organization Address and Contact Info'));
$breadCrumbPath = CRM_Utils_System::url('civicrm/admin', 'reset=1');
CRM_Utils_System::appendBreadCrumb(ts('Administer CiviCRM'), $breadCrumbPath);
CRM_Utils_System::appendBreadCrumb(ts('Administer'), $breadCrumbPath);
$session = CRM_Core_Session::singleton();
$session->replaceUserContext(CRM_Utils_System::url('civicrm/admin', 'reset=1'));

Expand Down
2 changes: 1 addition & 1 deletion CRM/Core/xml/Menu/Admin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@
</item>
<item>
<path>civicrm/admin</path>
<title>Administer CiviCRM</title>
<title>Administer</title>
<access_arguments>administer CiviCRM system,administer CiviCRM data,access CiviCRM</access_arguments>
<page_type>1</page_type>
<page_callback>CRM_Admin_Page_Admin</page_callback>
Expand Down
2 changes: 1 addition & 1 deletion ext/afform/core/CRM/Afform/Page/AfformBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function run() {
// If the user has "admin civicrm" & the admin extension is enabled
if (CRM_Core_Permission::check('administer CiviCRM')) {
if (($pagePath[1] ?? NULL) === 'admin') {
CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Admin'), 'url' => CRM_Utils_System::url('civicrm/admin')]]);
CRM_Utils_System::appendBreadCrumb([['title' => E::ts('Administer'), 'url' => CRM_Utils_System::url('civicrm/admin')]]);
}
if ($afform['type'] !== 'system' &&
\CRM_Extension_System::singleton()->getMapper()->isActiveModule('afform_admin')
Expand Down

0 comments on commit 6b45a5f

Please sign in to comment.