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

raeburn raeburn at source.lon-capa.org
Sun Jan 26 21:21:31 EST 2014


raeburn		Mon Jan 27 02:21:31 2014 EDT

  Modified files:              
    /loncom/interface	loncommon.pm 
  Log:
  - Remove trailing white space.
  - Add alt attribute for img tag to satisfy w3c validation. 
  
  
Index: loncom/interface/loncommon.pm
diff -u loncom/interface/loncommon.pm:1.1171 loncom/interface/loncommon.pm:1.1172
--- loncom/interface/loncommon.pm:1.1171	Tue Jan 21 14:38:51 2014
+++ loncom/interface/loncommon.pm	Mon Jan 27 02:21:30 2014
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # a pile of common routines
 #
-# $Id: loncommon.pm,v 1.1171 2014/01/21 14:38:51 kruse Exp $
+# $Id: loncommon.pm,v 1.1172 2014/01/27 02:21:30 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -14888,12 +14888,12 @@
     if ($captcha eq 'original') {
         $output = &create_captcha();
         unless ($output) {
-            $error = 'captcha'; 
+            $error = 'captcha';
         }
     } elsif ($captcha eq 'recaptcha') {
         $output = &create_recaptcha($pubkey);
         unless ($output) {
-            $error = 'recaptcha'; 
+            $error = 'recaptcha';
         }
     }
     return ($output,$error);
@@ -14973,7 +14973,7 @@
             $output = '<input type="hidden" name="crypt" value="'.$md5sum.'" />'."\n".
                       &mt('Type in the letters/numbers shown below').' '.
                      '<input type="text" size="5" name="code" value="" /><br />'.
-                     '<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" />';
+                     '<img src="'.$captcha_params{'www_output_dir'}.'/'.$md5sum.'.png" alt="captcha" />';
             last;
         }
     }




More information about the LON-CAPA-cvs mailing list