From: Andrew Hunt Date: Tue, 31 Mar 2015 20:21:51 +0000 (-0400) Subject: CRM-16201 permissions: fix processing of descriptions for Joomla X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=444b3e90f86274449d710ca26cd3f408cc5cf75d;p=civicrm-core.git CRM-16201 permissions: fix processing of descriptions for Joomla ---------------------------------------- * CRM-16201: Permission descriptions and translation https://issues.civicrm.org/jira/browse/CRM-16201 --- diff --git a/distmaker/utils/joomlaxml.php b/distmaker/utils/joomlaxml.php index 679ba3e376..6a1f642f40 100644 --- a/distmaker/utils/joomlaxml.php +++ b/distmaker/utils/joomlaxml.php @@ -90,8 +90,10 @@ function generateJoomlaConfig($version) { $perm = $comp->getPermissions(FALSE, TRUE); if ($perm) { $info = $comp->getInfo(); - foreach ($perm as $p) { - $permissions[$p] = $info['translatedName'] . ': ' . $p; + foreach ($perm as $p => $attr) { + $title = $info['translatedName'] . ': ' . array_shift($attr); + array_unshift($attr, $title); + $permissions[$p] = $attr; } } }