--- loncom/interface/lonhelper.pm 2003/10/28 21:45:15 1.61 +++ loncom/interface/lonhelper.pm 2004/02/27 19:51:46 1.64 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # .helper XML handler to implement the LON-CAPA helper # -# $Id: lonhelper.pm,v 1.61 2003/10/28 21:45:15 albertel Exp $ +# $Id: lonhelper.pm,v 1.64 2004/02/27 19:51:46 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -2905,7 +2905,7 @@ the old values taking effect. no strict; @ISA = ("Apache::lonhelper::element"); use strict; - +use Apache::lonlocal; BEGIN { &Apache::lonhelper::register('Apache::lonhelper::final', ('final', 'exitpage')); @@ -2999,6 +2999,11 @@ sub render { if ($self->{'restartCourse'}) { 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'}) { $targetURL = '/adm/parmset?overview=1'; } @@ -3011,7 +3016,7 @@ sub render { "\n" . "\n\n" . + &mt('Finish Course Initialization') . "' />\n" . ""; }