[LON-CAPA-cvs] cvs: loncom(version_2_11_X) /interface lonnavdisplay.pm
raeburn
raeburn at source.lon-capa.org
Thu May 22 08:25:32 EDT 2014
raeburn Thu May 22 12:25:32 2014 EDT
Modified files: (Branch: version_2_11_X)
/loncom/interface lonnavdisplay.pm
Log:
- For 2.11
- Backport 1.27, 1.28
Index: loncom/interface/lonnavdisplay.pm
diff -u loncom/interface/lonnavdisplay.pm:1.22.4.4 loncom/interface/lonnavdisplay.pm:1.22.4.5
--- loncom/interface/lonnavdisplay.pm:1.22.4.4 Tue May 6 00:59:00 2014
+++ loncom/interface/lonnavdisplay.pm Thu May 22 12:25:32 2014
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
-# Navigate Maps Handler
+# Navigate Maps Display Handler
#
-# $Id: lonnavdisplay.pm,v 1.22.4.4 2014/05/06 00:59:00 raeburn Exp $
+# $Id: lonnavdisplay.pm,v 1.22.4.5 2014/05/22 12:25:32 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -30,7 +30,7 @@
package Apache::lonnavdisplay;
use strict;
-use Apache::Constants qw(:common :http);
+use Apache::Constants qw(:common :http REDIRECT);
use Apache::lonmenu();
use Apache::loncommon();
use Apache::lonnavmaps();
@@ -59,6 +59,14 @@
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
if ($env{'browser.mathml'}) {
&Apache::loncommon::content_type($r,'text/xml');
More information about the LON-CAPA-cvs
mailing list