version 1.35, 2008/11/20 15:19:05
|
version 1.37, 2009/02/16 13:52:04
|
Line 126 ENDSELECT
|
Line 126 ENDSELECT
|
# ----------------------------- successtied is now '1' if in working selectmode |
# ----------------------------- successtied is now '1' if in working selectmode |
my ($errtext,$fatal)=&mapread(&Apache::lonnet::filelocation('',$url),''); |
my ($errtext,$fatal)=&mapread(&Apache::lonnet::filelocation('',$url),''); |
if ($fatal==1) { |
if ($fatal==1) { |
$r->print('<p><b><font color="red">'.&mt('Map contents are not shown in order.').'</font></b></p><br />'); |
$r->print('<p class="LC_warning">' |
|
.&mt('Map contents are not shown in order.') |
|
.'</p><br />'); |
} |
} |
my $idx=0; |
my $idx=0; |
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
foreach (&attemptread(&Apache::lonnet::filelocation('',$url))) { |
Line 280 sub handler {
|
Line 282 sub handler {
|
&Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid], |
&Apache::lonnet::symblist($requrl,$disurl => [$disurl,$dismapid], |
'last_known' => [$disurl,$dismapid]); |
'last_known' => [$disurl,$dismapid]); |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |
$r->header_out(Location => 'http://'.$ENV{'HTTP_HOST'}.$disurl); |
$r->header_out(Location => &Apache::lonnet::absolute_url($ENV{'SERVER_NAME'}). |
|
$disurl); |
return REDIRECT; |
return REDIRECT; |
} else { |
} else { |
&Apache::loncommon::content_type($r,'text/html'); |
&Apache::loncommon::content_type($r,'text/html'); |