[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm

albertel lon-capa-cvs@mail.lon-capa.org
Sat, 03 Jun 2006 20:36:26 -0000


albertel		Sat Jun  3 16:36:26 2006 EDT

  Modified files:              
    /loncom/interface	lonnavmaps.pm 
  Log:
  - start_page doesn't want a &mt
  
  
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.385 loncom/interface/lonnavmaps.pm:1.386
--- loncom/interface/lonnavmaps.pm:1.385	Tue May 30 16:13:45 2006
+++ loncom/interface/lonnavmaps.pm	Sat Jun  3 16:36:24 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Navigate Maps Handler
 #
-# $Id: lonnavmaps.pm,v 1.385 2006/05/30 20:13:45 raeburn Exp $
+# $Id: lonnavmaps.pm,v 1.386 2006/06/03 20:36:24 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -250,7 +250,6 @@
 # ----------------------------------------------------- Force menu registration
     my $body_only='';
     my $js;
-    my $crstype = $env{'course.'.$env{'request.course.id'}.'.type'};
     if ($env{'environment.remotenavmap'} eq 'on') {
 	$js='<script type="text/javascript">
                 function collapse() {
@@ -261,12 +260,15 @@
     }
 
     # Header
-    $r->print(&Apache::loncommon::start_page(&mt('Navigate [_1] Contents',
-                                                 $crstype),$js,
+    my $course_type = &Apache::loncommon::course_type();
+    $r->print(&Apache::loncommon::start_page('Navigate '.$course_type.
+					     ' Contents',
+					     $js,
 					     {'only_body'       => $body_only,
 					      'force_register'  =>
 						  $env{'form.register'},}));
-    $r->print('<script type="text/javascript">window.focus();</script>');
+    $r->print(&mt('Navigate '.$course_type.' Contents').
+	      '<script type="text/javascript">window.focus();</script>');
      
     $r->rflush();