[LON-CAPA-cvs] cvs: loncom /homework structuretags.pm

albertel lon-capa-cvs-allow@mail.lon-capa.org
Mon, 10 Sep 2007 17:02:34 -0000


albertel		Mon Sep 10 13:02:34 2007 EDT

  Modified files:              
    /loncom/homework	structuretags.pm 
  Log:
  - style police
  
  
Index: loncom/homework/structuretags.pm
diff -u loncom/homework/structuretags.pm:1.394 loncom/homework/structuretags.pm:1.395
--- loncom/homework/structuretags.pm:1.394	Mon Sep 10 12:25:38 2007
+++ loncom/homework/structuretags.pm	Mon Sep 10 13:02:32 2007
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA 
 # definition of tags that give a structure to a document
 #
-# $Id: structuretags.pm,v 1.394 2007/09/10 16:25:38 www Exp $
+# $Id: structuretags.pm,v 1.395 2007/09/10 17:02:32 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1142,7 +1142,7 @@
 	my $exclude = $token->[2]->{'exclude'};
         my $preferred_language=(&Apache::loncommon::preferred_languages)[0];
 # This should not even happen, since we should at least have the server language
-        unless ($preferred_language) { $preferred_language='en'; }
+        if (!$preferred_language) { $preferred_language='en'; }
 # If the languageblock has no arguments, show the contents
         $result='1';
 # Do we have an include argument?