From bd958fa534fd10adfec21fded9bf49bfc6241738 Mon Sep 17 00:00:00 2001 From: Brett Bieber <bieber@unl.edu> Date: Tue, 14 Sep 2010 14:37:52 +0000 Subject: [PATCH] $username is not defined. Use the global var. git-svn-id: file:///tmp/wdn_thm_drupal/branches/drupal-7.x@163 20a16fea-79d4-4915-8869-1ea9d5ebf173 --- sites/all/modules/unl/unl_cas.module | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sites/all/modules/unl/unl_cas.module b/sites/all/modules/unl/unl_cas.module index 75423513..da55f624 100644 --- a/sites/all/modules/unl/unl_cas.module +++ b/sites/all/modules/unl/unl_cas.module @@ -98,8 +98,8 @@ function unl_cas_form_alter(&$form, $form_state, $form_id) $form['account']['pass']['#type'] = 'hidden'; $form['account']['current_pass_required_values']['#type'] = 'hidden'; $form['account']['current_pass']['#type'] = 'hidden'; - - $form['picture']['#description'] = 'To change your picture, visit <a href="http://planetred.unl.edu/pg/profile/unl_' . $username .'">Planet Red</a>.'; + + $form['picture']['#description'] = 'To change your picture, visit <a href="http://planetred.unl.edu/pg/profile/unl_' . $GLOBALS['user']->name .'">Planet Red</a>.'; $form['picture']['picture_delete']['#type'] = 'hidden'; $form['picture']['picture_upload']['#type'] = 'hidden'; } -- GitLab