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

raeburn raeburn@source.lon-capa.org
Sun, 21 Dec 2008 15:48:43 -0000


raeburn		Sun Dec 21 15:48:43 2008 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/interface	londocs.pm 
  Log:
  - Backport 1.323.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.314.2.2 loncom/interface/londocs.pm:1.314.2.3
--- loncom/interface/londocs.pm:1.314.2.2	Sun Dec 21 15:47:50 2008
+++ loncom/interface/londocs.pm	Sun Dec 21 15:48:43 2008
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.314.2.2 2008/12/21 15:47:50 raeburn Exp $
+# $Id: londocs.pm,v 1.314.2.3 2008/12/21 15:48:43 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1279,7 +1279,7 @@
 # Maps need to be copied first
     if (($url=~/\.(page|sequence)$/) && ($url=~/^\/uploaded\//)) {
 	$title=&mt('Copy of').' '.$title;
-	my $newid=$$.time;
+        my $newid=$$.int(rand(100)).time;
 	my ($oldid,$ext) = ($url=~/^(.+)\.(\w+)$/);
         if ($oldid =~ m{^(/uploaded/\Q$coursedom\E/\Q$coursenum\E/)(\D+)(\d+)$}) {
             my $path = $1;