version 1.66, 2003/11/01 16:37:22
|
version 1.68, 2003/12/12 16:38:53
|
Line 77 sub putinversion {
|
Line 77 sub putinversion {
|
if ($version eq &Apache::lonnet::getversion( |
if ($version eq &Apache::lonnet::getversion( |
&Apache::lonnet::filelocation('',$uri))) |
&Apache::lonnet::filelocation('',$uri))) |
{ return $uri; } |
{ return $uri; } |
&Apache::lonnet::logthis($uri.' '.$version.' '. &Apache::lonnet::getversion( |
|
&Apache::lonnet::filelocation('',$uri))); |
|
$uri=~s/\.(\w+)$/\.$version\.$1/; |
$uri=~s/\.(\w+)$/\.$version\.$1/; |
} |
} |
return $uri; |
return $uri; |
Line 166 sub loadmap {
|
Line 164 sub loadmap {
|
$turi='/adm/coursedocs/showdoc'.$turi; |
$turi='/adm/coursedocs/showdoc'.$turi; |
} |
} |
} else { # normal internal resource |
} else { # normal internal resource |
if (($embstyle eq 'img') || ($embstyle eq 'emb')) { |
my $mapdir=$uri; |
$turi='/adm/wrapper'.$turi; |
$mapdir=~s/[^\/]+$//; |
} |
$turi=&Apache::lonnet::hreflocation($mapdir,$turi); |
|
if (($embstyle eq 'img') || ($embstyle eq 'emb')) { |
|
$turi='/adm/wrapper'.$turi; |
|
} |
} |
} |
} |
} |
|
|