[LON-CAPA-cvs] cvs: loncom /interface lonnavmaps.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Thu, 11 May 2006 21:54:08 -0000
albertel Thu May 11 17:54:08 2006 EDT
Modified files:
/loncom/interface lonnavmaps.pm
Log:
- the map_(start|type|finish|pc)_ have deversioned urls in them
Index: loncom/interface/lonnavmaps.pm
diff -u loncom/interface/lonnavmaps.pm:1.379 loncom/interface/lonnavmaps.pm:1.380
--- loncom/interface/lonnavmaps.pm:1.379 Sat Apr 29 13:57:29 2006
+++ loncom/interface/lonnavmaps.pm Thu May 11 17:54:06 2006
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# Navigate Maps Handler
#
-# $Id: lonnavmaps.pm,v 1.379 2006/04/29 17:57:29 albertel Exp $
+# $Id: lonnavmaps.pm,v 1.380 2006/05/11 21:54:06 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -3830,7 +3830,6 @@
}
sub is_sequence {
my $self=shift;
- my $src = $self->src();
return $self->navHash("is_map_", 1) &&
$self->navHash("map_type_" . $self->map_pc()) eq 'sequence';
}
@@ -3905,20 +3904,20 @@
sub map_finish {
my $self = shift;
my $src = $self->src();
- $src = Apache::lonnet::clutter($src);
+ $src = &Apache::lonnet::deversion(&Apache::lonnet::clutter($src));
my $res = $self->navHash("map_finish_$src", 0);
$res = $self->{NAV_MAP}->getById($res);
return $res;
}
sub map_pc {
my $self = shift;
- my $src = $self->src();
+ my $src = &Apache::lonnet::deversion($self->src());
return $self->navHash("map_pc_$src", 0);
}
sub map_start {
my $self = shift;
my $src = $self->src();
- $src = Apache::lonnet::clutter($src);
+ $src = &Apache::lonnet::deversion(&Apache::lonnet::clutter($src));
my $res = $self->navHash("map_start_$src", 0);
$res = $self->{NAV_MAP}->getById($res);
return $res;