projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0f2fba8
)
CRM-16201 permissions: fix processing of descriptions for Joomla
author
Andrew Hunt
<andrew@aghstrategies.com>
Tue, 31 Mar 2015 20:21:51 +0000
(16:21 -0400)
committer
Andrew Hunt
<andrew@aghstrategies.com>
Tue, 31 Mar 2015 20:21:51 +0000
(16:21 -0400)
----------------------------------------
* CRM-16201: Permission descriptions and translation
https://issues.civicrm.org/jira/browse/CRM-16201
distmaker/utils/joomlaxml.php
patch
|
blob
|
blame
|
history
diff --git
a/distmaker/utils/joomlaxml.php
b/distmaker/utils/joomlaxml.php
index 679ba3e376ea6b8a66de1b54fdb62bf5209228f3..6a1f642f40feeb050b07ab4774f27a7a5dec746a 100644
(file)
--- 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;
}
}
}