[LON-CAPA-cvs] cvs: loncom /interface lonwhatsnew.pm
bisitz
bisitz@source.lon-capa.org
Fri, 15 Apr 2011 13:57:18 -0000
bisitz Fri Apr 15 13:57:18 2011 EDT
Modified files:
/loncom/interface lonwhatsnew.pm
Log:
Remove "version_" when calling method $navmap->usedVersion as lonnavmaps will already add "version_" to the url thrown in sub routine usedVersion($url).
users can now view problem version correctly in what's new page "resources in course with version changes" if they use earlier version of the problem.
(Credits: Leo Christianto)
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.103 loncom/interface/lonwhatsnew.pm:1.104
--- loncom/interface/lonwhatsnew.pm:1.103 Thu Mar 31 17:54:10 2011
+++ loncom/interface/lonwhatsnew.pm Fri Apr 15 13:57:18 2011
@@ -1,5 +1,5 @@
#
-# $Id: lonwhatsnew.pm,v 1.103 2011/03/31 17:54:10 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.104 2011/04/15 13:57:18 bisitz Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1434,7 +1434,7 @@
'lastrevisiondate');
$revdate = &Apache::lonlocal::locallocaltime($revdate);
my $linkurl=&Apache::lonnet::clutter($key);
- my $usedversion=$navmap->usedVersion('version_'.$linkurl);
+ my $usedversion=$navmap->usedVersion($linkurl);
my @resources = $navmap->getResourceByUrl($linkurl,1);
if (($usedversion) && ($usedversion ne 'mostrecent')) {
$version = $usedversion;