From 444b3e90f86274449d710ca26cd3f408cc5cf75d Mon Sep 17 00:00:00 2001 From: Andrew Hunt Date: Tue, 31 Mar 2015 16:21:51 -0400 Subject: [PATCH] CRM-16201 permissions: fix processing of descriptions for Joomla ---------------------------------------- * CRM-16201: Permission descriptions and translation https://issues.civicrm.org/jira/browse/CRM-16201 --- distmaker/utils/joomlaxml.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } } } -- 2.25.1