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

unify send_redirect(wl()) parameters #2550

Merged
merged 3 commits into from Jan 9, 2019
Merged

Conversation

phy25
Copy link
Collaborator

@phy25 phy25 commented Oct 22, 2018

  • always use absolute URL
  • use static string instead of array if no concat is required
  • use & instead of &

Inspired by discussions in #2547.

- always use absolute URL
- use static string instead of array if no concat is required
- use '&' instead of '&'
@Klap-in
Copy link
Collaborator

Klap-in commented Jan 7, 2019

According to the PHPdocs of the wl() function the associative array is recommended. That option has also some filtering.
https://github.com/splitbrain/dokuwiki/blob/95305c9fcae83b6433b3d31879f49c270ea5283e/inc/common.php#L477-L492
Why are you using the string format instead?

@phy25
Copy link
Collaborator Author

phy25 commented Jan 7, 2019

I intended to eliminate the need of constant string concatenation from array, but if there's some filtering (maybe event hooks in the future) it does worth using the array. Didn't notice that indeed...

@splitbrain splitbrain merged commit ee73f09 into master Jan 9, 2019
@splitbrain splitbrain deleted the wl-redirect-consistency branch January 9, 2019 06:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants