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

raeburn raeburn@source.lon-capa.org
Sat, 19 Jun 2010 23:28:12 -0000


raeburn		Sat Jun 19 23:28:12 2010 EDT

  Modified files:              
    /loncom/interface	lonpreferences.pm 
  Log:
  - Third arg for loncommon::select_form() is now a ref to a hash. 
  
  
Index: loncom/interface/lonpreferences.pm
diff -u loncom/interface/lonpreferences.pm:1.189 loncom/interface/lonpreferences.pm:1.190
--- loncom/interface/lonpreferences.pm:1.189	Wed Apr 28 14:55:58 2010
+++ loncom/interface/lonpreferences.pm	Sat Jun 19 23:28:12 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Preferences
 #
-# $Id: lonpreferences.pm,v 1.189 2010/04/28 14:55:58 wenzelju Exp $
+# $Id: lonpreferences.pm,v 1.190 2010/06/19 23:28:12 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -166,11 +166,12 @@
 	               = &Apache::loncommon::plainlanguagedescription($_);
 	}
     }
+    %langchoices = &Apache::lonlocal::texthash(%langchoices);
     my $selectionbox=
            &Apache::loncommon::select_form(
                $language,
                'language',
-               &Apache::lonlocal::texthash(%langchoices));
+               \%langchoices);
     $r->print(<<ENDLSCREEN);
 <form name="prefs" action="/adm/preferences" method="post">
 <input type="hidden" name="action" value="verify_and_change_languages" />
@@ -229,11 +230,12 @@
 		     'mimetex' => 'mimetex (Convert to Images)',
                      'raw' => 'Raw (Screen Reader)'
                      );
+    %mathchoices = &Apache::lonlocal::texthash(%mathchoices);
     my $selectionbox=
            &Apache::loncommon::select_form(
                $texengine,
                'texengine',
-               &Apache::lonlocal::texthash(%mathchoices));
+               \%mathchoices);
     my $jsMath_start=&Apache::lontexconvert::jsMath_header();
     my %lt=&Apache::lonlocal::texthash(
       'headline' => 'Change how math is displayed',