--- loncom/homework/structuretags.pm 2013/07/15 14:32:55 1.514
+++ loncom/homework/structuretags.pm 2014/02/28 19:19:46 1.517
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# definition of tags that give a structure to a document
#
-# $Id: structuretags.pm,v 1.514 2013/07/15 14:32:55 bisitz Exp $
+# $Id: structuretags.pm,v 1.517 2014/02/28 19:19:46 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -637,7 +637,7 @@ sub problem_edit_header {
'.&Apache::lonxml::message_location().'
'.
- '
';
+ '
';
}
sub problem_edit_footer {
@@ -728,7 +728,7 @@ $show_all
@@ -2057,9 +2057,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)
+ .'