version 1.61, 2003/10/28 21:45:15
|
version 1.65, 2004/03/08 17:31:37
|
Line 230 my $paramHash;
|
Line 230 my $paramHash;
|
# In the debugger, this means that breakpoints are ignored until you step into |
# In the debugger, this means that breakpoints are ignored until you step into |
# a function and get out of what must be a "faked up scope" in the Apache-> |
# a function and get out of what must be a "faked up scope" in the Apache-> |
# mod_perl connection. In this code, it was manifesting itself in the existence |
# mod_perl connection. In this code, it was manifesting itself in the existence |
# of two seperate file-scoped $helper variables, one set to the value of the |
# of two separate file-scoped $helper variables, one set to the value of the |
# helper in the helper constructor, and one referenced by the handler on the |
# helper in the helper constructor, and one referenced by the handler on the |
# "$helper->process()" line. Using the debugger, one could actually |
# "$helper->process()" line. Using the debugger, one could actually |
# see the two different $helper variables, as hashes at completely |
# see the two different $helper variables, as hashes at completely |
Line 2905 the old values taking effect.
|
Line 2905 the old values taking effect.
|
no strict; |
no strict; |
@ISA = ("Apache::lonhelper::element"); |
@ISA = ("Apache::lonhelper::element"); |
use strict; |
use strict; |
|
use Apache::lonlocal; |
BEGIN { |
BEGIN { |
&Apache::lonhelper::register('Apache::lonhelper::final', |
&Apache::lonhelper::register('Apache::lonhelper::final', |
('final', 'exitpage')); |
('final', 'exitpage')); |
Line 2999 sub render {
|
Line 2999 sub render {
|
|
|
if ($self->{'restartCourse'}) { |
if ($self->{'restartCourse'}) { |
my $targetURL = '/adm/menu'; |
my $targetURL = '/adm/menu'; |
|
if ($ENV{'course.'.$ENV{'request.course.id'}.'.url'}=~/^uploaded/) { |
|
$targetURL = '/adm/coursedocs'; |
|
} else { |
|
$targetURL = '/adm/navmaps'; |
|
} |
if ($ENV{'course.'.$ENV{'request.course.id'}.'.clonedfrom'}) { |
if ($ENV{'course.'.$ENV{'request.course.id'}.'.clonedfrom'}) { |
$targetURL = '/adm/parmset?overview=1'; |
$targetURL = '/adm/parmset?overview=1'; |
} |
} |
Line 3011 sub render {
|
Line 3016 sub render {
|
"<input type='hidden' name='selectrole' value='1' />\n" . |
"<input type='hidden' name='selectrole' value='1' />\n" . |
"<input type='hidden' name='" . $ENV{'request.role'} . |
"<input type='hidden' name='" . $ENV{'request.role'} . |
"' value='1' />\n<input type='submit' value='" . |
"' value='1' />\n<input type='submit' value='" . |
&mt('Finish Course Initialization') . " />\n" . |
&mt('Finish Course Initialization') . "' />\n" . |
"</form></center>"; |
"</form></center>"; |
} |
} |
|
|