[Rejected] $mybb doesn't exist in build_captcha in class_captcha.php
#1
Hi,

in "member_register_regimage" template use
{$mybb->asset_url}
(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
Reply
#2
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
Reply
#3
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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)