--- loncom/interface/lonquickgrades.pm 2012/01/02 05:08:03 1.103 +++ loncom/interface/lonquickgrades.pm 2015/03/13 22:06:10 1.105 @@ -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.105 2015/03/13 22:06:10 raeburn 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; @@ -75,6 +75,14 @@ sub real_handler { return OK; } + # 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; + } + # Send header, don't cache this page &Apache::loncommon::no_cache($r); $r->send_http_header;