mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Make sure captcha factory is there. Make sure language array is there.
git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10431 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
77af6caed7
commit
f98ca7ce48
2 changed files with 10 additions and 0 deletions
|
@ -69,6 +69,11 @@ function login_db(&$username, &$password)
|
||||||
if ($show_captcha)
|
if ($show_captcha)
|
||||||
{
|
{
|
||||||
// Visual Confirmation handling
|
// Visual Confirmation handling
|
||||||
|
if (!class_exists('phpbb_captcha_factory'))
|
||||||
|
{
|
||||||
|
global $phpbb_root_path, $phpEx;
|
||||||
|
include ($phpbb_root_path . 'includes/captcha/captcha_factory.' . $phpEx);
|
||||||
|
}
|
||||||
|
|
||||||
$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
$captcha =& phpbb_captcha_factory::get_instance($config['captcha_plugin']);
|
||||||
$captcha->init(CONFIRM_LOGIN);
|
$captcha->init(CONFIRM_LOGIN);
|
||||||
|
|
|
@ -193,6 +193,11 @@ class phpbb_default_captcha
|
||||||
{
|
{
|
||||||
global $config, $db, $user;
|
global $config, $db, $user;
|
||||||
|
|
||||||
|
if (empty($user->lang))
|
||||||
|
{
|
||||||
|
$user->setup();
|
||||||
|
}
|
||||||
|
|
||||||
$error = '';
|
$error = '';
|
||||||
if (!$this->confirm_id)
|
if (!$this->confirm_id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue