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

bisitz bisitz@source.lon-capa.org
Tue, 12 May 2009 14:56:28 -0000


bisitz		Tue May 12 14:56:28 2009 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  Consistent confirm messages for nickname and screenname changes
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.160 loncom/interface/lonpreferences.pm:1.161
--- loncom/interface/lonpreferences.pm:1.160	Mon May 11 16:51:27 2009
+++ loncom/interface/lonpreferences.pm	Tue May 12 14:56:27 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.160 2009/05/11 16:51:27 bisitz Exp $
+# $Id: lonpreferences.pm,v 1.161 2009/05/12 14:56:27 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -544,7 +544,7 @@
     if ($newscreen) {
         &Apache::lonnet::put('environment',{'screenname' => $newscreen});
         &Apache::lonnet::appenv({'environment.screenname' => $newscreen});
-        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Screenname').'</i>','<tt>"'.$newscreen.'."</tt>'));
+        $message=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Screenname').'</i>','<tt>"'.$newscreen.'"</tt>'));
     } else {
         &Apache::lonnet::del('environment',['screenname']);
         &Apache::lonnet::delenv('environment.screenname');
@@ -557,7 +557,7 @@
     if ($newscreen) {
         &Apache::lonnet::put('environment',{'nickname' => $newscreen});
         &Apache::lonnet::appenv({'environment.nickname' => $newscreen});
-        $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Nickname').'</i>','<tt>"'.$newscreen.'"</tt>.'));
+        $message.=&Apache::lonhtmlcommon::confirm_success(&mt('Set [_1] to [_2]','<i>'.&mt('Nickname').'</i>','<tt>"'.$newscreen.'"</tt>'));
     } else {
         &Apache::lonnet::del('environment',['nickname']);
         &Apache::lonnet::delenv('environment.nickname');