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

raeburn lon-capa-cvs@mail.lon-capa.org
Thu, 12 Jan 2006 22:28:05 -0000


raeburn		Thu Jan 12 17:28:05 2006 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  Upload of embedded objects will now work in folders below the top level. Fix error caused by change in regexp in rev 1.195.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.216 loncom/interface/londocs.pm:1.217
--- loncom/interface/londocs.pm:1.216	Thu Jan  5 16:17:38 2006
+++ loncom/interface/londocs.pm	Thu Jan 12 17:28:03 2006
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.216 2006/01/05 21:17:38 albertel Exp $
+# $Id: londocs.pm,v 1.217 2006/01/12 22:28:03 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1373,7 +1373,7 @@
     if (($folder eq 'default') || ($folder eq 'supplemental')) {
         $destination .= 'default/';
     } elsif ($folder =~ /^(default|supplemental)_(\d+)$/) {
-        $destination .=  $1.'/';
+        $destination .=  $2.'/';
     }
     $destination .= $newidx;
     my ($url,$filename);