[LON-CAPA-cvs] cvs: loncom /lonnet/perl lonnet.pm

droeschl droeschl@source.lon-capa.org
Fri, 17 Jul 2009 13:55:11 -0000


droeschl		Fri Jul 17 13:55:11 2009 EDT

  Modified files:              
    /loncom/lonnet/perl	lonnet.pm 
  Log:
  Userinformation won't be shown in preview mode anymore.
  
  
Index: loncom/lonnet/perl/lonnet.pm
diff -u loncom/lonnet/perl/lonnet.pm:1.1003 loncom/lonnet/perl/lonnet.pm:1.1004
--- loncom/lonnet/perl/lonnet.pm:1.1003	Thu Jun 11 19:19:57 2009
+++ loncom/lonnet/perl/lonnet.pm	Fri Jul 17 13:55:10 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # TCP networking package
 #
-# $Id: lonnet.pm,v 1.1003 2009/06/11 19:19:57 raeburn Exp $
+# $Id: lonnet.pm,v 1.1004 2009/07/17 13:55:10 droeschl Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1866,6 +1866,8 @@
     if ($filelink=~/^https?\:/) {
        ($output,$response)=&externalssi($filelink);
     } else {
+       $filelink .= $filelink=~/\?/ ? '&' : '?';
+       $filelink .= 'inhibitmenu=yes';
        ($output,$response)=&ssi($filelink,%form);
     }
     $output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;