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

Add support for custom pages on mass delete #250

Merged
merged 1 commit into from
Nov 6, 2019

Conversation

bls1999
Copy link
Contributor

@bls1999 bls1999 commented Jul 6, 2019

In v2.0.2, if the user is clicking "Delete All Alerts" or "Delete Read Alerts" on a custom page outside of the board directory, it would set the return links (ret_link=) for both as $mybb->settings['boardurl'] . 'unknown'.

This fix instead uses both $mybb->settings['homeurl'] and the request URI to determine where to send the user after performing the appropriate deletion operation.

In v2.0.2, if the user is clicking "Delete All Alerts" or "Delete Read Alerts" on a custom page outside of the board directory, it would set the return links (`ret_link=`) for both as `$mybb->settings['boardurl'] . 'unknown'`.

This fix instead uses both `$mybb->settings['homeurl']` and the request URI to determine where to send the user after performing the appropriate deletion operation.
@euantorano euantorano merged commit 19714c7 into MyBBStuff:master Nov 6, 2019
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.

2 participants