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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 06 Jan 2006 19:05:32 -0000


albertel		Fri Jan  6 14:05:32 2006 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  - display the current setting when entering the screen where on can change it
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.72 loncom/interface/lonpreferences.pm:1.73
--- loncom/interface/lonpreferences.pm:1.72	Wed Dec 28 16:39:35 2005
+++ loncom/interface/lonpreferences.pm	Fri Jan  6 14:05:30 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.72 2005/12/28 21:39:35 albertel Exp $
+# $Id: lonpreferences.pm,v 1.73 2006/01/06 19:05:30 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -983,13 +983,13 @@
     my $domain     = $env{'user.domain'};
     my %userenv = &Apache::lonnet::get('environment',['course_init_display']);
     my $currvalue = 'whatsnew';
-    my $firstselect='checked="checked"';
-    my $whatsnewselect='';
+    my $firstselect = '';
+    my $whatsnewselect = 'checked="checked"';
     if (exists($userenv{'course_init_display'})) {
         if ($userenv{'course_init_display'} eq 'firstres') {
             $currvalue = 'firstres';
-            $firstselect='';
-            $whatsnewselect='checked="checked"';
+            $firstselect = 'checked="checked"';
+	    $whatsnewselect = '';
         }
     }
     my %pagenames = (