diff --git a/e107_core/shortcodes/batch/signup_shortcodes.php b/e107_core/shortcodes/batch/signup_shortcodes.php index 82a929565..1ecbe68c4 100755 --- a/e107_core/shortcodes/batch/signup_shortcodes.php +++ b/e107_core/shortcodes/batch/signup_shortcodes.php @@ -65,8 +65,7 @@ class signup_shortcodes extends e_shortcode // TODO - template function sc_signup_xup_login($parm) { - $pref = e107::getPref('social_login_active'); - if (empty($pref)) return ''; + if (!e107::getUserProvider()->isSocialLoginEnabled()) return ''; $size = empty($parm['size']) ? '3x' : $parm['size']; $class = empty($parm['class']) ? 'btn btn-primary' : $parm['class'] ; @@ -77,8 +76,7 @@ class signup_shortcodes extends e_shortcode // TODO - template function sc_signup_xup_signup($parm) { - $pref = e107::getPref('social_login_active'); - if (empty($pref)) return ''; + if (!e107::getUserProvider()->isSocialLoginEnabled()) return ''; $size = empty($parm['size']) ? '2x' : $parm['size']; $class = empty($parm['class']) ? 'btn btn-primary' : $parm['class'] ; diff --git a/e107_handlers/comment_class.php b/e107_handlers/comment_class.php index 7047a4b71..eea9e1205 100644 --- a/e107_handlers/comment_class.php +++ b/e107_handlers/comment_class.php @@ -313,7 +313,7 @@ class comment else { // Comment entry not allowed - point to signup link $userReg = intval(e107::pref('core','user_reg')); - $socialLogin = e107::pref('core','social_login_active'); + $socialLogin = e107::getUserProvider()->isSocialLoginEnabled(); $text = "
" . LAN_SOCIAL_UPDATE_REQUIRED . "
"; } - $text = "