[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonquickgrades.pm

raeburn raeburn at source.lon-capa.org
Thu May 22 08:44:24 EDT 2014


raeburn		Thu May 22 12:44:24 2014 EDT

  Modified files:              (Branch: version_2_11_X)
    /loncom/interface	lonquickgrades.pm 
  Log:
  - For 2.11
    - Backport 1.104
  
  
Index: loncom/interface/lonquickgrades.pm
diff -u loncom/interface/lonquickgrades.pm:1.49 loncom/interface/lonquickgrades.pm:1.49.6.1
--- loncom/interface/lonquickgrades.pm:1.49	Sat Nov 21 18:07:03 2009
+++ loncom/interface/lonquickgrades.pm	Thu May 22 12:44:24 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Quick Student Grades Display
 #
-# $Id: lonquickgrades.pm,v 1.49 2009/11/21 18:07:03 www Exp $
+# $Id: lonquickgrades.pm,v 1.49.6.1 2014/05/22 12:44:24 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;
@@ -44,6 +44,14 @@
 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




More information about the LON-CAPA-cvs mailing list