version 1.203, 2009/12/02 18:33:27
|
version 1.203.2.1, 2009/12/07 02:27:25
|
Line 1332 sub showpreview {
|
Line 1332 sub showpreview {
|
my $output=''; |
my $output=''; |
my $embstyle=&Apache::loncommon::fileembstyle($curfext); |
my $embstyle=&Apache::loncommon::fileembstyle($curfext); |
if ($embstyle eq 'ssi') { |
if ($embstyle eq 'ssi') { |
my $cache=$Apache::lonnet::perlvar{'lonDocRoot'}.$filelink. |
my $cache = $Apache::lonnet::perlvar{'lonDocRoot'}.$filelink; |
'.tmp'; |
if ($env{'request.gcicontext'} eq 'buildtest') { |
|
$cache .= '.tn'; |
|
} else { |
|
$cache .= '.tmp'; |
|
} |
if ((!$env{'form.updatedisplay'}) && |
if ((!$env{'form.updatedisplay'}) && |
(-e $cache)) { |
(-e $cache)) { |
open(FH,$cache); |
open(FH,$cache); |