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

www lon-capa-cvs@mail.lon-capa.org
Fri, 28 Jul 2006 20:01:29 -0000


www		Fri Jul 28 16:01:29 2006 EDT

  Modified files:              
    /loncom/interface	groupsort.pm 
  Log:
  Make external (NSDL) resources work again
  
  
Index: loncom/interface/groupsort.pm
diff -u loncom/interface/groupsort.pm:1.46 loncom/interface/groupsort.pm:1.47
--- loncom/interface/groupsort.pm:1.46	Fri Jul 21 04:29:47 2006
+++ loncom/interface/groupsort.pm	Fri Jul 28 16:01:26 2006
@@ -2,7 +2,7 @@
 # The LON-CAPA group sort handler
 # Allows for sorting prior to import into RAT.
 #
-# $Id: groupsort.pm,v 1.46 2006/07/21 08:29:47 albertel Exp $
+# $Id: groupsort.pm,v 1.47 2006/07/28 20:01:26 www Exp $
 # 
 # Copyright Michigan State University Board of Trustees
 #
@@ -431,6 +431,7 @@
     my ($sel,$title,$filelink) = @_;
     my $string = '<input type="hidden" name="title'.$sel.'" value="'.$title.
 	'" />';
+    $filelink=~s/^\/ext\//http\:\/\//;
     $string .= '<input type="hidden" name="filelink'.$sel.'" value="'.
 	$filelink.'" />';
     return $string;