The issue appeared to be that the re-formatting of administer multisite is happening after the re-formatting
dependent on the parameter being passed in. The function doing the reformatting is apparently only called from
that function so we could move the description processing to the calling function.
NB - need to grep wordpress, joomla, drupal dirs for that fn before making the change I guess,
Or we could just do the stuff twice to be safe
$permissions['administer Multiple Organizations'] = array($prefix . ts('administer Multiple Organizations'));
}
+ if (!$descriptions) {
+ foreach ($permissions as $name => $attr) {
+ $permissions[$name] = array_shift($attr);
+ }
+ }
if (!$all) {
$components = CRM_Core_Component::getEnabledComponents();
}
*
* @return array
*/
- public static function getCorePermissions($descriptions = FALSE) {
+ public static function getCorePermissions() {
$prefix = ts('CiviCRM') . ': ';
$permissions = array(
'add contacts' => array(
),
);
- if (!$descriptions) {
- foreach ($permissions as $name => $attr) {
- $permissions[$name] = array_shift($attr);
- }
- }
-
return $permissions;
}