Commit 444b3e90 authored by Andrew Hunt's avatar Andrew Hunt

CRM-16201 permissions: fix processing of descriptions for Joomla

----------------------------------------
* CRM-16201: Permission descriptions and translation
  https://issues.civicrm.org/jira/browse/CRM-16201
parent 0f2fba8e
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment