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

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 09 Feb 2006 00:40:22 -0000


raeburn		Wed Feb  8 19:40:22 2006 EDT

  Modified files:              
    /loncom/interface	lonpopulate.pm 
  Log:
  Only show email: if permanentemail exists for course owner.
  
  
Index: loncom/interface/lonpopulate.pm
diff -u loncom/interface/lonpopulate.pm:1.37 loncom/interface/lonpopulate.pm:1.38
--- loncom/interface/lonpopulate.pm:1.37	Wed Feb  8 18:47:23 2006
+++ loncom/interface/lonpopulate.pm	Wed Feb  8 19:40:19 2006
@@ -1,5 +1,5 @@
 # automated enrollment configuration handler
-# $Id: lonpopulate.pm,v 1.37 2006/02/08 23:47:23 raeburn Exp $
+# $Id: lonpopulate.pm,v 1.38 2006/02/09 00:40:19 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -943,10 +943,14 @@
           } else {
               my ($ownername,$owneremail) = &get_ownerinfo($dom,
                                                     $enrollvar{'courseowner'});
+              my $emailstr;
+              if ($owneremail) {
+                  $emailstr = "(e-mail: $owneremail)";
+              }
               $r->print('
                     <tr>
                      <td>'.
-&mt('The policies of your institution [_1] require that the course owner [_2] must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername).'<br /><br />'.&mt('Please direct the course owner (e-mail: [_1]) to visit the "Student photos" page in the Automated Enrollment Manager to indicate acceptance of these conditions of use',$owneremail).'<br /><br /><input type="button" name=mainmenu" value="Go back" onclick="javascript:history.go(-1);" />
+&mt('The policies of your institution [_1] require that the course owner [_2] must indicate acceptance of the conditions of use of digital photos of registered students, before they may be made available for use in a course.',$institution,$ownername).'<br /><br />'.&mt('Please direct the course owner [_1] to visit the "Student photos" page in the Automated Enrollment Manager to indicate acceptance of these conditions of use.',$emailstr).'<br /><br /><input type="button" name=mainmenu" value="Go back" onclick="javascript:history.go(-1);" />
                     </td>
                    </tr>
                   </form>