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

raeburn raeburn@source.lon-capa.org
Mon, 07 Dec 2009 02:27:26 -0000


raeburn		Mon Dec  7 02:27:26 2009 EDT

  Modified files:              (Branch: GCI_3)
    /loncom/interface	lonindexer.pm 
  Log:
  - Customization for GCI_3. (Same change as 1.181.6.2 for GCI_2).
  
  
Index: loncom/interface/lonindexer.pm
diff -u loncom/interface/lonindexer.pm:1.203 loncom/interface/lonindexer.pm:1.203.2.1
--- loncom/interface/lonindexer.pm:1.203	Wed Dec  2 18:33:27 2009
+++ loncom/interface/lonindexer.pm	Mon Dec  7 02:27:25 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Directory Indexer
 #
-# $Id: lonindexer.pm,v 1.203 2009/12/02 18:33:27 bisitz Exp $
+# $Id: lonindexer.pm,v 1.203.2.1 2009/12/07 02:27:25 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1332,8 +1332,12 @@
     my $output='';
     my $embstyle=&Apache::loncommon::fileembstyle($curfext);
     if ($embstyle eq 'ssi') {
-       my $cache=$Apache::lonnet::perlvar{'lonDocRoot'}.$filelink.
-                    '.tmp';
+       my $cache = $Apache::lonnet::perlvar{'lonDocRoot'}.$filelink;
+       if ($env{'request.gcicontext'} eq 'buildtest') {
+           $cache .= '.tn';
+       } else {
+           $cache .= '.tmp';
+       }
        if ((!$env{'form.updatedisplay'}) &&
                     (-e $cache)) {
           open(FH,$cache);