--- loncom/interface/lonindexer.pm 2006/09/21 22:11:12 1.152
+++ loncom/interface/lonindexer.pm 2006/12/05 02:55:53 1.154
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Directory Indexer
#
-# $Id: lonindexer.pm,v 1.152 2006/09/21 22:11:12 albertel Exp $
+# $Id: lonindexer.pm,v 1.154 2006/12/05 02:55:53 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -54,6 +54,7 @@ use Apache::File;
use Apache::lonlocal;
use Apache::lonsource();
use GDBM_File;
+use LONCAPA qw(:match);
# ---------------------------------------- variables used throughout the module
my %hash; # global user-specific gdbm file
@@ -366,7 +367,7 @@ function gothere(val) {
ENDHEADER
- my ($headerdom)=($uri=~/^\/res\/(\w+)\//);
+ my ($headerdom)=($uri=~m{^/res/($match_domain)/});
$r->print(&Apache::loncommon::start_page('Browse Resources',$js,
{'domain' => $headerdom,}));
# - Evaluate actions from previous page (both cumulatively and chronologically)
@@ -913,7 +914,7 @@ sub display_line {
$quotable_filelink,"')\">");
$r->print("".
"\n");
- $r->print("