1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Interface fixes and refactoring to e107 conventions/standards.

This commit is contained in:
Cameron
2020-02-28 10:33:50 -08:00
parent 66ea783998
commit 331aa5f99e
10 changed files with 214 additions and 84 deletions

View File

@@ -1104,14 +1104,14 @@ class e_user_provider
protected $hybridauth;
protected $_config = array();
/**
* @var SocialLoginConfigManager
* @var social_login_config
*/
protected $social_login_config_manager;
public function __construct($provider = null, $config = array())
{
require_once(e_PLUGIN . "social/SocialLoginConfigManager.php");
$this->social_login_config_manager = new SocialLoginConfigManager(e107::getConfig());
require_once(e_PLUGIN . "social/includes/social_login_config.php");
$this->social_login_config_manager = new social_login_config(e107::getConfig());
if (!empty($config))
{
@@ -1432,7 +1432,7 @@ class e_user_provider
*/
public function isSocialLoginEnabled()
{
return $this->social_login_config_manager->isFlagActive(SocialLoginConfigManager::ENABLE_BIT_GLOBAL);
return $this->social_login_config_manager->isFlagActive(social_login_config::ENABLE_BIT_GLOBAL);
}
/**