Skip to content

Commit

Permalink
Merge pull request #5527 from agh1/joomlaxml-permission-desc
Browse files Browse the repository at this point in the history
CRM-16201 permissions: fix processing of descriptions for Joomla
  • Loading branch information
davecivicrm committed Mar 31, 2015
2 parents 0f2fba8 + 444b3e9 commit 2521306
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions distmaker/utils/joomlaxml.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 2521306

Please sign in to comment.