*** logintoboggan.module.orig	2007-12-29 04:55:18.000000000 +0200
--- logintoboggan.module	2008-02-28 06:41:52.000000000 +0200
***************
*** 540,546 ****
  
    $pre = '<div id="toboggan-container" class="toboggan-container">';
    $pre .= '<div class="toboggan-login-link">';
!   $pre .= l(theme('lt_login_link'), 'user/login', array('onclick' => "toggleboggan();this.blur();return false;"));
    $pre .= '</div>';
  
    //the block that will be toggled
--- 540,547 ----
  
    $pre = '<div id="toboggan-container" class="toboggan-container">';
    $pre .= '<div class="toboggan-login-link">';
!   $pre .= l(theme('lt_login_only_link'), 'user/login', array('onclick' => "toggleboggan();this.blur();return false;"));
!   $pre .= ' \ ' . l(theme('lt_register_link'), 'user/register', '');
    $pre .= '</div>';
  
    //the block that will be toggled
***************
*** 1065,1067 ****
--- 1066,1082 ----
      return t('Login');
    }
  }
+ 
+ function theme_lt_login_only_link() {
+   return t('Login');
+ }
+ 
+ function theme_lt_register_link() {
+   // Only display register text if registration is allowed.
+   if (variable_get('user_register', 1)) {
+     return t('Registration');
+   }
+   else {
+     return '';
+   }
+ }
