Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Ref] Remove php4 support from BAO_Acl class #16119

Merged
merged 1 commit into from
Dec 19, 2019

Conversation

eileenmcnaughton
Copy link
Contributor

Overview

Code tidy up for readability - remove confusing legacy php support structures

Before

Function calls like public static function &getGroupACLs($contact_id, $aclRoles = FALSE) {

After

Function calls like public static function getGroupACLs($contact_id, $aclRoles = FALSE) {

Technical Details

Removes instances of php support involving & in the function signature. In each instance the function is only ever called once
(I think all are internal too) & the calling function doesn't do any weird stuff with references that might make it needed.
Also remove one instance of unnecessarily passed by ref

Comments

Removes instances of php support involving & in the function signature. In each instance the function is only ever called once
(I think all are internal too) & the calling function doesn't do any weird stuff with references that might make it needed.
Also remove one instance of  unnecessarily passed by ref
@civibot
Copy link

civibot bot commented Dec 19, 2019

(Standard links)

@civibot civibot bot added the master label Dec 19, 2019
@@ -78,8 +78,6 @@ public static function operation() {
/**
* Construct a WHERE clause to handle permissions to $object_*
*
* @deprecated
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

still in the same comment block - just lower

@eileenmcnaughton eileenmcnaughton merged commit f68f50b into civicrm:master Dec 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants