[Rejected] $mybb doesn't exist in build_captcha in class_captcha.php

in "member_register_regimage" template use
(this template use in build_captcha in class_captcha.php) but There isn't $mybb in global of this function.

For fix
line 168 of inc/class_captcha.php
		global $db, $lang, $templates, $theme;
should be:
		global $mybb, $db, $lang, $templates, $theme;
AliReza Tofighi
MyBB Persian Support
Anybody from mybb team to confirm this? PR is not a problem...
[MyBB 1.8 Czech translation] [MyBB 1.8 plugins]: Prune old PMs + optimize DB plugin --- Thank you/like system
I've just read this now, I've fixed it earlier this week while fixing CAPTCHA bugs. I'm rejecting this (even though it was a valid at that time).

Thanks though Smile
All my plugins are available for free at MyBB Extend and on my GitHub. MyBB-Plugins.com has been closed and none of my plugins are officially maintained or supported.

Forum Jump:

Users browsing this thread: 1 Guest(s)