[LON-CAPA-cvs] cvs: loncom /auth switchserver.pm

raeburn lon-capa-cvs-allow@mail.lon-capa.org
Sat, 08 Sep 2007 02:43:33 -0000


raeburn		Fri Sep  7 22:43:33 2007 EDT

  Modified files:              
    /loncom/auth	switchserver.pm 
  Log:
  Use redirect arg in call to start_page so there is a "Continue" link as well as the meta refresh. 
  
  
Index: loncom/auth/switchserver.pm
diff -u loncom/auth/switchserver.pm:1.15 loncom/auth/switchserver.pm:1.16
--- loncom/auth/switchserver.pm:1.15	Fri Aug 24 21:24:05 2007
+++ loncom/auth/switchserver.pm	Fri Sep  7 22:43:33 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Switch Servers Handler
 #
-# $Id: switchserver.pm,v 1.15 2007/08/25 01:24:05 albertel Exp $
+# $Id: switchserver.pm,v 1.16 2007/09/08 02:43:33 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -62,10 +62,10 @@
 sub do_redirect {
     my ($r,$url,$only_body,$extra_text) = @_;
     $r->send_http_header;
-    my $switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='.$url.'">';
     my $start_page = 
-	&Apache::loncommon::start_page('Switching Server ...', $switch,
-				       {'no_inline_link' => 1,
+	&Apache::loncommon::start_page('Switching Server ...',undef,
+				       {'redirect'       => [0.5,$url],
+                                        'no_inline_link' => 1,
 					'only_body'      => $only_body,});
     my $end_page   = &Apache::loncommon::end_page();
     $r->print($start_page.$extra_text.$end_page);