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:
Andreas Fischer 2010-01-20 00:20:46 +00:00
parent 77af6caed7
commit f98ca7ce48
2 changed files with 10 additions and 0 deletions

View file

@ -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);

View file

@ -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)
{ {