[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 04 Oct 2005 17:28:11 -0000


albertel		Tue Oct  4 13:28:11 2005 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  - hey we got a sub for that
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.658 loncom/lonnet/perl/lonnet.pm:1.659
--- loncom/lonnet/perl/lonnet.pm:1.658	Tue Oct  4 12:26:15 2005
+++ loncom/lonnet/perl/lonnet.pm	Tue Oct  4 13:28:08 2005
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.658 2005/10/04 16:26:15 raeburn Exp $
+# $Id: lonnet.pm,v 1.659 2005/10/04 17:28:08 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -3228,8 +3228,7 @@
 # --------------------------------------------------- Is a resource on the map?
 
 sub is_on_map {
-    my $uri=&declutter(shift);
-    $uri=~s/\.\d+\.(\w+)$/\.$1/;
+    my $uri=&deversion(&declutter(shift));
     my @uriparts=split(/\//,$uri);
     my $filename=$uriparts[$#uriparts];
     my $pathname=$uri;