--- loncom/interface/lonpopulate.pm 2006/08/10 22:05:18 1.48 +++ loncom/interface/lonpopulate.pm 2007/03/08 01:58:45 1.49 @@ -1,5 +1,5 @@ # automated enrollment configuration handler -# $Id: lonpopulate.pm,v 1.48 2006/08/10 22:05:18 albertel Exp $ +# $Id: lonpopulate.pm,v 1.49 2007/03/08 01:58:45 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -944,7 +944,7 @@ your changes. '); my ($result,$perm_reqd)=&Apache::lonnet::auto_photo_permission($crs,$dom); my $can_enable = 1; - my $institution = $Apache::lonnet::domaindescription{$dom}; + my $institution = &Apache::lonnet::domain($dom,'description'); if ($result eq 'ok') { if ($perm_reqd eq 'yes') { if (!($enrollvar{'photopermission'} eq 'yes')) { @@ -2346,7 +2346,7 @@ sub photo_permission { sub print_photo_agreement { my ($r,$realm,$dom,$crs,$action,$tasktitleref,$conditions,$courseowner)=@_; my $response; - my $institution = $Apache::lonnet::domaindescription{$dom}; + my $institution = &Apache::lonnet::domain($dom,'description'); if (&user_is_courseowner($courseowner)) { $response = '