From d37485699eafebe37d800aeaf724b0767a6a2dfb Mon Sep 17 00:00:00 2001 From: Gerhard Killesreiter Date: Sun, 9 Apr 2006 08:48:50 +0000 Subject: #54294, don't show DA stuff, if disabled. Patch by Moshe --- modules/user.module | 2 +- modules/user/user.module | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules') diff --git a/modules/user.module b/modules/user.module index 26e087f19..d9c5caa53 100644 --- a/modules/user.module +++ b/modules/user.module @@ -883,7 +883,7 @@ function user_login($msg = '') { '#required' => TRUE, '#attributes' => array('tabindex' => '1'), ); - if (count(user_auth_help_links()) > 0) { + if (variable_get('drupal_authentication_service', FALSE) && count(user_auth_help_links()) > 0) { $form['name']['#description'] = t('Enter your %s username, or an ID from one of our affiliates: %a.', array('%s' => variable_get('site_name', 'local'), '%a' => implode(', ', user_auth_help_links()))); } else { diff --git a/modules/user/user.module b/modules/user/user.module index 26e087f19..d9c5caa53 100644 --- a/modules/user/user.module +++ b/modules/user/user.module @@ -883,7 +883,7 @@ function user_login($msg = '') { '#required' => TRUE, '#attributes' => array('tabindex' => '1'), ); - if (count(user_auth_help_links()) > 0) { + if (variable_get('drupal_authentication_service', FALSE) && count(user_auth_help_links()) > 0) { $form['name']['#description'] = t('Enter your %s username, or an ID from one of our affiliates: %a.', array('%s' => variable_get('site_name', 'local'), '%a' => implode(', ', user_auth_help_links()))); } else { -- cgit v1.2.3