--- loncom/interface/lontrackstudent.pm 2011/12/21 21:25:40 1.33 +++ loncom/interface/lontrackstudent.pm 2024/11/21 07:26:03 1.41 @@ -1,6 +1,6 @@ # The LearningOnline Network with CAPA # -# $Id: lontrackstudent.pm,v 1.33 2011/12/21 21:25:40 www Exp $ +# $Id: lontrackstudent.pm,v 1.41 2024/11/21 07:26:03 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -46,6 +46,7 @@ use strict; use Apache::Constants qw(:common :http); use Apache::lonmysql; use Apache::lonnet; +use Apache::loncommon; use Apache::lonlocal; use Time::HiRes; use DateTime(); @@ -185,12 +186,12 @@ sub get_max_time_in_db { &Apache::lonhtmlcommon::Update_PrgWin ($r,$prog_state,&mt('Parsing results')); # - if (! open(TIMEDATA,$results_file)) { - $r->print('
'.&mt('Unable to read results file.').'
'. ''.
- &mt('This is a serious error and has been logged. '.
- 'You should contact your system administrator '.
- 'to resolve this issue.').
+ &mt('This is a serious error and has been logged.').
+ '
'.
+ &mt('Please alert your LON-CAPA administrator.').
'
'.&mt('So far, no data has been returned for your request').'
'); return -1; } - if (! open(ACTIVITYDATA,$results_file)) { - $r->print(''.&mt('Unable to read results file.').'
'. ''.
- &mt('This is a serious error and has been logged. '.
- 'You should contact your system administrator '.
- 'to resolve this issue.').
+ &mt('This is a serious error and has been logged.').
+ '
'.
+ &mt('Please alert your LON-CAPA administrator.').
'