[LON-CAPA-cvs] cvs: loncom(version_2_10_X) /interface lonwhatsnew.pm

raeburn raeburn@source.lon-capa.org
Thu, 12 May 2011 16:53:02 -0000


raeburn		Thu May 12 16:53:02 2011 EDT

  Modified files:              (Branch: version_2_10_X)
    /loncom/interface	lonwhatsnew.pm 
  Log:
  - Backport 1.103, 1.104.
  
  
Index: loncom/interface/lonwhatsnew.pm
diff -u loncom/interface/lonwhatsnew.pm:1.101 loncom/interface/lonwhatsnew.pm:1.101.2.1
--- loncom/interface/lonwhatsnew.pm:1.101	Sun Feb 28 22:38:11 2010
+++ loncom/interface/lonwhatsnew.pm	Thu May 12 16:53:02 2011
@@ -1,5 +1,5 @@
 #
-# $Id: lonwhatsnew.pm,v 1.101 2010/02/28 22:38:11 raeburn Exp $
+# $Id: lonwhatsnew.pm,v 1.101.2.1 2011/05/12 16:53:02 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -88,7 +88,7 @@
 
     if ( ! $env{'request.course.fn'} || ! $checkallowed{'whatsnew'}) {
         # Not in a course, or no whn priv in course
-        $env{'user.error.msg'}="/adm/whatsnew::whn:0:0:Cannot display what's new page";
+        $env{'user.error.msg'}="/adm/whatsnew:whn:0:0:Cannot display what's new page";
         return HTTP_NOT_ACCEPTABLE;
     }
 
@@ -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;