--- loncom/interface/lonpopulate.pm 2006/02/09 13:45:54 1.39 +++ loncom/interface/lonpopulate.pm 2006/02/10 02:59:02 1.40 @@ -1,5 +1,5 @@ # automated enrollment configuration handler -# $Id: lonpopulate.pm,v 1.39 2006/02/09 13:45:54 albertel Exp $ +# $Id: lonpopulate.pm,v 1.40 2006/02/10 02:59:02 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1029,13 +1029,17 @@ Note: Any students previously added manu if ($enrollvar{'showphoto'}) { my ($update,$commentary) = &Apache::lonnet::auto_photochoice($crs, $dom); - $r->print('
'.$commentary.'

+ if ($update) { + $r->print('
'.$commentary.'

'); + } else { + $r->print(&mt('Update of photos via the Automated Enrollment Manager is unavailable in this domain.').'

'); + } } else { $r->print('Update of photos is unavailable, as import of student photos is currently disabled.
Enable this first via: '.$$tasktitleref{'photos'}.''); }