';
}
sub problem_edit_footer {
@@ -728,7 +776,7 @@ $show_all
@@ -975,7 +1023,7 @@ sub checkout_msg {
$lt{'warning'}
ENDCHECKOUT
}
@@ -1009,7 +1057,7 @@ sub firstaccess_msg {
$result .= (<
-
+
ENDCHECKOUT
return $result;
@@ -1168,7 +1216,7 @@ sub start_problem {
$target eq 'tex') {
if ($env{'form.markaccess'}) {
my @interval=&Apache::lonnet::EXT("resource.0.interval");
- &Apache::lonnet::set_first_access($interval[1]);
+ &Apache::lonnet::set_first_access($interval[1],$interval[0]);
}
($status,$accessmsg,$slot_name,$slot) =
@@ -2057,9 +2105,15 @@ sub end_while {
}
$return = &Apache::run::run($code,$safeeval);
}
- if ($error) {
- &Apache::lonxml::error('
'.&mt('Code ran too long. It ran for more than').' '.$Apache::lonnet::perlvar{'lonScriptTimeout'}.' '.&mt('seconds occurred while running <while> on line').' '.$line.'
'
+ .&mt('Code ran too long. It ran for more than [_1] seconds.',
+ $Apache::lonnet::perlvar{'lonScriptTimeout'})
+ .&mt('This occurred while running <while> on line [_1].',
+ $line)
+ .'