--- loncom/interface/lonquickgrades.pm 2012/01/02 05:08:03 1.103 +++ loncom/interface/lonquickgrades.pm 2014/05/20 20:32:16 1.104 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Quick Student Grades Display # -# $Id: lonquickgrades.pm,v 1.103 2012/01/02 05:08:03 raeburn Exp $ +# $Id: lonquickgrades.pm,v 1.104 2014/05/20 20:32:16 musolffc Exp $ # # Copyright Michigan State University Board of Trustees # @@ -29,7 +29,7 @@ package Apache::lonquickgrades; use strict; -use Apache::Constants qw(:common :http); +use Apache::Constants qw(:common :http REDIRECT); use POSIX; use Apache::loncommon; use Apache::lonlocal; @@ -62,6 +62,14 @@ sub handler { sub real_handler { my $r = shift; + # Check for critical messages and redirect if present. + my ($redirect,$url) = &Apache::loncommon::critical_redirect(300); + if ($redirect) { + &Apache::loncommon::content_type($r,'text/html'); + $r->header_out(Location => $url); + return REDIRECT; + } + &Apache::loncommon::get_unprocessed_cgi($ENV{QUERY_STRING}); # Handle header-only request 500 Internal Server Error

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator at root@localhost to inform them of the time this error occurred, and the actions you performed just before this error.

More information about this error may be available in the server error log.