X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FAdmin%2FForm%2FExtensions.php;h=936f5a6f72c41ca492f96442ad6b3591042429be;hb=65d81bf2dde568813a374195e9fd8c943859a3e7;hp=83fba1bdcb3e9e32c043e7b0f3a9813ffd9a1071;hpb=abeb85652bbf753e7d0fc962b14b15f637c45058;p=civicrm-core.git diff --git a/CRM/Admin/Form/Extensions.php b/CRM/Admin/Form/Extensions.php index 83fba1bdcb..936f5a6f72 100644 --- a/CRM/Admin/Form/Extensions.php +++ b/CRM/Admin/Form/Extensions.php @@ -49,7 +49,10 @@ class CRM_Admin_Form_Extensions extends CRM_Admin_Form { if (!CRM_Utils_Type::validate($this->_key, 'ExtensionKey') && !empty($this->_key)) { throw new CRM_Core_Exception('Extension Key does not match expected standard'); } - $this->label = $remoteExtensionRows[$this->_key]['label'] ?? $this->_key; + + $name = $remoteExtensionRows[$this->_key]['label'] ?? $localExtensionRows[$this->_key]['label'] ?? NULL; + $this->label = $name ? sprintf('%s (%s)', htmlentities($name), htmlentities($this->_key)) + : sprintf('%s', htmlentities($this->_key)); $session = CRM_Core_Session::singleton(); $url = CRM_Utils_System::url('civicrm/admin/extensions', 'reset=1&action=browse'); $session->pushUserContext($url);