mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[feature/auth-refactor] Change phpEx to php_ext in new classes
PHPBB3-9734
This commit is contained in:
parent
19bbf7b7de
commit
5af7d2b07f
2 changed files with 9 additions and 9 deletions
|
@ -30,16 +30,16 @@ class phpbb_auth_provider_apache implements phpbb_auth_provider_interface
|
||||||
* @param phpbb_request $request
|
* @param phpbb_request $request
|
||||||
* @param phpbb_user $user
|
* @param phpbb_user $user
|
||||||
* @param string $phpbb_root_path
|
* @param string $phpbb_root_path
|
||||||
* @param string $phpEx
|
* @param string $php_ext
|
||||||
*/
|
*/
|
||||||
public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user, $phpbb_root_path, $phpEx)
|
public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user, $phpbb_root_path, $php_ext)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
$this->phpEx = $phpEx;
|
$this->php_ext = $php_ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -183,7 +183,7 @@ class phpbb_auth_provider_apache implements phpbb_auth_provider_interface
|
||||||
|
|
||||||
if (!function_exists('user_add'))
|
if (!function_exists('user_add'))
|
||||||
{
|
{
|
||||||
include($this->phpbb_root_path . 'includes/functions_user.' . $this->phpEx);
|
include($this->phpbb_root_path . 'includes/functions_user.' . $this->php_ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
// create the user if he does not exist yet
|
// create the user if he does not exist yet
|
||||||
|
|
|
@ -33,16 +33,16 @@ class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||||
* @param phpbb_request $request
|
* @param phpbb_request $request
|
||||||
* @param phpbb_user $user
|
* @param phpbb_user $user
|
||||||
* @param string $phpbb_root_path
|
* @param string $phpbb_root_path
|
||||||
* @param string $phpEx
|
* @param string $php_ext
|
||||||
*/
|
*/
|
||||||
public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user, $phpbb_root_path, $phpEx)
|
public function __construct(phpbb_db_driver $db, phpbb_config $config, phpbb_request $request, phpbb_user $user, $phpbb_root_path, $php_ext)
|
||||||
{
|
{
|
||||||
$this->db = $db;
|
$this->db = $db;
|
||||||
$this->config = $config;
|
$this->config = $config;
|
||||||
$this->request = $request;
|
$this->request = $request;
|
||||||
$this->user = $user;
|
$this->user = $user;
|
||||||
$this->phpbb_root_path = $phpbb_root_path;
|
$this->phpbb_root_path = $phpbb_root_path;
|
||||||
$this->phpEx = $phpEx;
|
$this->php_ext = $php_ext;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function init()
|
public function init()
|
||||||
|
@ -160,7 +160,7 @@ class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||||
// Visual Confirmation handling
|
// Visual Confirmation handling
|
||||||
if (!class_exists('phpbb_captcha_factory', false))
|
if (!class_exists('phpbb_captcha_factory', false))
|
||||||
{
|
{
|
||||||
include ($this->phpbb_root_path . 'includes/captcha/captcha_factory.' . $this->phpEx);
|
include ($this->phpbb_root_path . 'includes/captcha/captcha_factory.' . $this->php_ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
$captcha = phpbb_captcha_factory::get_instance($this->config['captcha_plugin']);
|
$captcha = phpbb_captcha_factory::get_instance($this->config['captcha_plugin']);
|
||||||
|
@ -206,7 +206,7 @@ class phpbb_auth_provider_db implements phpbb_auth_provider_interface
|
||||||
{
|
{
|
||||||
if (!function_exists('utf8_to_cp1252'))
|
if (!function_exists('utf8_to_cp1252'))
|
||||||
{
|
{
|
||||||
include($this->phpbb_root_path . 'includes/utf/data/recode_basic.' . $this->phpEx);
|
include($this->phpbb_root_path . 'includes/utf/data/recode_basic.' . $this->php_ext);
|
||||||
}
|
}
|
||||||
|
|
||||||
// cp1252 is phpBB2's default encoding, characters outside ASCII range might work when converted into that encoding
|
// cp1252 is phpBB2's default encoding, characters outside ASCII range might work when converted into that encoding
|
||||||
|
|
Loading…
Add table
Reference in a new issue