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

raeburn raeburn at source.lon-capa.org
Tue Jul 15 17:51:48 EDT 2014


raeburn		Tue Jul 15 21:51:48 2014 EDT

  Modified files:              
    /loncom/interface	domainprefs.pm 
  Log:
  - Removed unused scalar.
  
  
Index: loncom/interface/domainprefs.pm
diff -u loncom/interface/domainprefs.pm:1.248 loncom/interface/domainprefs.pm:1.249
--- loncom/interface/domainprefs.pm:1.248	Tue Jul 15 20:04:03 2014
+++ loncom/interface/domainprefs.pm	Tue Jul 15 21:51:47 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Handler to set domain-wide configuration settings
 #
-# $Id: domainprefs.pm,v 1.248 2014/07/15 20:04:03 raeburn Exp $
+# $Id: domainprefs.pm,v 1.249 2014/07/15 21:51:47 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -5172,7 +5172,6 @@
 
 sub defaults_javascript {
     my ($settings) = @_;
-    my ($output,$jstext);
     return unless (ref($settings) eq 'HASH'); 
     if ((ref($settings->{'inststatusorder'}) eq 'ARRAY') && (ref($settings->{'inststatustypes'}) eq 'HASH')) {
         my $maxnum = scalar(@{$settings->{'inststatusorder'}});
@@ -5180,7 +5179,7 @@
             $maxnum = 0;
         }
         $maxnum ++;
-        $jstext = '    var inststatuses = Array('."'".join("','",@{$settings->{'inststatusorder'}})."'".');';  
+        my $jstext = '    var inststatuses = Array('."'".join("','",@{$settings->{'inststatusorder'}})."'".');';  
         return <<"ENDSCRIPT";
 <script type="text/javascript">
 // <![CDATA[




More information about the LON-CAPA-cvs mailing list