[LON-CAPA-cvs] cvs: loncom /interface loncommon.pm

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 30 Jun 2006 01:21:38 -0000


albertel		Thu Jun 29 21:21:38 2006 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - better default for no nameers BUG#4874
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.409 loncom/interface/loncommon.pm:1.410
--- loncom/interface/loncommon.pm:1.409	Thu Jun 29 20:47:14 2006
+++ loncom/interface/loncommon.pm	Thu Jun 29 21:21:36 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.409 2006/06/30 00:47:14 albertel Exp $
+# $Id: loncommon.pm,v 1.410 2006/06/30 01:21:36 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -2866,15 +2866,12 @@
 	return $bodytag;
     }
 
-
+    my $name = &plainname($env{'user.name'},$env{'user.domain'});
     
     my $roleinfo=(<<ENDROLE);
 <td class="LC_title_bar_who">
 <div class="LC_title_bar_name">
-    $env{'environment.firstname'}
-    $env{'environment.middlename'}
-    $env{'environment.lastname'}
-    $env{'environment.generation'}
+    $name
     &nbsp;
 </div>
 <div class="LC_title_bar_role">