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

Fixed send_mail_queue call #3371

Merged
merged 1 commit into from Jul 30, 2018
Merged

Fixed send_mail_queue call #3371

merged 1 commit into from Jul 30, 2018

Conversation

zygzagZ
Copy link
Contributor

@zygzagZ zygzagZ commented Jul 30, 2018

Fixes #3372

In inc/init.php:243 there is function call that registers send_mail_queue to be run at shutdown.
add_shutdown('send_mail_queue');
But just after require init.php in global.php, array $shutdown_functions is erased, not allowing send_mail_queue to run.
// Load main MyBB core file which begins all of the magic
require_once $working_dir.'/inc/init.php';

$shutdown_queries = $shutdown_functions = array();

@euantorano
Copy link
Member

euantorano commented Jul 30, 2018 via email

@zygzagZ
Copy link
Contributor Author

zygzagZ commented Jul 30, 2018

Mails are still sent when running task.php and some other files. Nonetheless this was annoying enough for me to debug it ;)

@euantorano
Copy link
Member

euantorano commented Jul 30, 2018 via email

@euantorano
Copy link
Member

Created an issue for this PR for tracking purposes when it comes to release time: #3372

Thanks for your contribution!

@euantorano euantorano added the b:1.8 Branch: 1.8.x label Jul 30, 2018
@euantorano euantorano merged commit 1477063 into mybb:feature Jul 30, 2018
@zygzagZ zygzagZ deleted the fix_mailqueue branch July 31, 2018 09:02
lairdshaw pushed a commit to lairdshaw/mybb that referenced this pull request Oct 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
b:1.8 Branch: 1.8.x
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants