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

damieng damieng at source.lon-capa.org
Fri Mar 18 17:59:42 EDT 2016


damieng		Fri Mar 18 21:59:42 2016 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  bug fix: web page file name was not getting truncated
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.598 loncom/interface/londocs.pm:1.599
--- loncom/interface/londocs.pm:1.598	Tue Jan 26 14:30:25 2016
+++ loncom/interface/londocs.pm	Fri Mar 18 21:59:42 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.598 2016/01/26 14:30:25 raeburn Exp $
+# $Id: londocs.pm,v 1.599 2016/03/18 21:59:42 damieng Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -685,7 +685,7 @@
                 } else {
                     $fname =~ s/\W/_/g;
                 }
-                if (length($fname > 15)) {
+                if (length($fname) > 15) {
                     $fname = substr($fname,0,14);
                 }
                 my $initialtext = &mt('Replace with your own content.');




More information about the LON-CAPA-cvs mailing list