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

albertel lon-capa-cvs@mail.lon-capa.org
Fri, 06 Jan 2006 22:50:30 -0000


albertel		Fri Jan  6 17:50:30 2006 EDT

  Modified files:              
    /loncom/interface	lonwhatsnew.pm 
  Log:
  - default to current setting
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.45 loncom/interface/lonwhatsnew.pm:1.46
--- loncom/interface/lonwhatsnew.pm:1.45	Fri Jan  6 17:37:27 2006
+++ loncom/interface/lonwhatsnew.pm	Fri Jan  6 17:50:29 2006
@@ -1,5 +1,5 @@
 #
-# $Id: lonwhatsnew.pm,v 1.45 2006/01/06 22:37:27 albertel Exp $
+# $Id: lonwhatsnew.pm,v 1.46 2006/01/06 22:50:29 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -564,12 +564,9 @@
     if ($current eq '') {
         $current = 'on';
     }
-    my %status = (
-                    on => 'checked="checked"',
-                    off => 'checked="checked"',
-                 );
-    $status{$current} = '';
-    $r->print('<br />'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'<br />'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"<i>What's New?</i>").'&nbsp;&nbsp;'.&mt('Currently set to [_1] .'),"<b>$current</b>.");
+    my %status = ( $current => 'checked="checked"');
+
+    $r->print('<br />'.&mt('Choose whether or not to display a count of the number of new posts for each resource or bulletin board which has unread posts.').'<br />'.&mt('This can increase the time taken to gather data for the [_1] page by a few seconds.',"<i>What's New?</i>").'&nbsp;&nbsp;');
     $r->print('<br /><br />
 <form method="post" name="discussionswitch" action="/adm/whatsnew">'.
 &mt('Display of unread post counts?').'&nbsp;