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

albertel lon-capa-cvs@mail.lon-capa.org
Tue, 11 May 2004 23:27:36 -0000


albertel		Tue May 11 19:27:36 2004 EDT

  Modified files:              
    /loncom/interface	lonindexer.pm 
  Log:
  
  - when listing /res/ all of domains ended up with the 'inside a map' background color
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.106 loncom/interface/lonindexer.pm:1.107
--- loncom/interface/lonindexer.pm:1.106	Tue May 11 09:22:41 2004
+++ loncom/interface/lonindexer.pm	Tue May 11 19:27:35 2004
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.106 2004/05/11 13:22:41 matthew Exp $
+# $Id: lonindexer.pm,v 1.107 2004/05/11 23:27:35 albertel Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -731,7 +731,7 @@
 # or absolute paths (for example, from sequences)
     my $absolute;
     my $pathprefix;
-    if ($line=~/^\/res\//) {
+    if ($line=~m|^/res/| && $startdir ne '') {
 	$absolute=1;
 	$pathprefix='';
     } else {