--- loncom/xml/run.pm 2003/11/09 01:17:35 1.42 +++ loncom/xml/run.pm 2004/01/29 18:46:25 1.43 @@ -1,6 +1,6 @@ package Apache::run; # -# $Id: run.pm,v 1.42 2003/11/09 01:17:35 albertel Exp $ +# $Id: run.pm,v 1.43 2004/01/29 18:46:25 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -62,7 +62,7 @@ sub evaluate { } else { if ($Apache::run::timeout) { $error = 'Code ran too long. It ran for more than '. - Apache->request->server->timeout.' seconds'; + $Apache::lonnet::perlvar{'lonScriptTimeout'}.' seconds'; } &Apache::lonxml::error('substitution on
'. &HTML::Entities::encode($expression). @@ -96,7 +96,7 @@ sub run { if (($Apache::run::timeout || $error ne '' || $innererror ne '') && !$hideerrors) { if ($Apache::run::timeout) { $error = 'Code ran too long. It ran for more than '. - Apache->request->server->timeout.' seconds'; + $Apache::lonnet::perlvar{'lonScriptTimeout'}.' seconds'; } my $errormsg=''.&HTML::Entities::encode($error).' '. &HTML::Entities::encode($innererror).