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

bisitz bisitz@source.lon-capa.org
Thu, 14 May 2009 17:28:24 -0000


bisitz		Thu May 14 17:28:24 2009 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  Consistent script variable names: replaced $notopbar by $no_nav_bar
  ("no_nav_bar" already in use for start_page parameter and CSS style)
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.813 loncom/interface/loncommon.pm:1.814
--- loncom/interface/loncommon.pm:1.813	Thu May 14 16:59:21 2009
+++ loncom/interface/loncommon.pm	Thu May 14 17:28:23 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.813 2009/05/14 16:59:21 bisitz Exp $
+# $Id: loncommon.pm,v 1.814 2009/05/14 17:28:23 bisitz Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -4215,8 +4215,8 @@
                       in the title box that appears, this text
                       is not auto translated like the $title is
 
-=item * $notopbar, if true, keep the 'what is this' info but remove the
-                   navigational links
+=item * $no_nav_bar, if true, keep the 'what is this' info but remove the
+                     navigational links
 
 =item * $bgcolor, used to override the bgcolor on a webpage to a specific value
 
@@ -4242,7 +4242,7 @@
 
 sub bodytag {
     my ($title,$function,$addentries,$bodyonly,$domain,$forcereg,$customtitle,
-	$notopbar,$bgcolor,$notitle,$no_inline_link,$args)=@_;
+        $no_nav_bar,$bgcolor,$notitle,$no_inline_link,$args)=@_;
 
     if (!$args->{'no_auto_mt_title'}) { $title = &mt($title); }
 
@@ -4367,7 +4367,7 @@
                          "<tr><td> $titleinfo $dc_info</td>".$roleinfo.
 			 '</tr></table>';
 	}
-	if ($notopbar) {
+	if ($no_nav_bar) {
 	    $bodytag .= $titletable;
 	} else {
         $bodytag .= qq|<div id="LC_nav_bar">$name ($role)<br />
@@ -6467,7 +6467,7 @@
 
              only_body      -> is true will set &bodytag() onlybodytag
                                     arg on
-             no_nav_bar     -> is true will set &bodytag() notopbar arg on
+             no_nav_bar     -> is true will set &bodytag() no_nav_bar arg on
              add_entries    -> additional attributes to add to the  <body>
              domain         -> force to color decorate a page for a 
                                     specific domain