[LON-CAPA-cvs] cvs: loncom /homework lonhomework.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Fri, 17 Dec 2004 22:30:30 -0000
albertel Fri Dec 17 17:30:30 2004 EDT
Modified files:
/loncom/homework lonhomework.pm
Log:
- Fixes BUG#3480 out put header only if we no where we are
Index: loncom/homework/lonhomework.pm
diff -u loncom/homework/lonhomework.pm:1.186 loncom/homework/lonhomework.pm:1.187
--- loncom/homework/lonhomework.pm:1.186 Fri Dec 3 16:47:38 2004
+++ loncom/homework/lonhomework.pm Fri Dec 17 17:30:30 2004
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# The LON-CAPA Homework handler
#
-# $Id: lonhomework.pm,v 1.186 2004/12/03 21:47:38 albertel Exp $
+# $Id: lonhomework.pm,v 1.187 2004/12/17 22:30:30 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -774,7 +774,6 @@
my $request=$_[0];
$Apache::lonxml::debug=$ENV{'user.debug'};
- if (&setupheader($request)) { return OK; }
$ENV{'request.uri'}=$request->uri;
&setuppermissions();
&Apache::lonxml::debug("Permissions:$Apache::lonhomework::browse:$Apache::lonhomework::viewgrades:");
@@ -803,6 +802,7 @@
$request->internal_redirect('/adm/ambiguous'); return;
}
}
+ if (&setupheader($request)) { return OK; }
my ($symb) = &Apache::lonxml::whichuser();
&Apache::lonxml::debug('symb is '.$symb);