[LON-CAPA-cvs] cvs: rat(version_2_11_X) / lonpage.pm

raeburn raeburn at source.lon-capa.org
Sat Oct 29 09:47:22 EDT 2016


raeburn		Sat Oct 29 13:47:22 2016 EDT

  Modified files:              (Branch: version_2_11_X)
    /rat	lonpage.pm 
  Log:
  - For 2.11
    - Eliminate header line containing "Switch to Inline Menu Mode" from
      rendering of each resource in composite page if Remote control enabled.
  
  
Index: rat/lonpage.pm
diff -u rat/lonpage.pm:1.111.2.3 rat/lonpage.pm:1.111.2.4
--- rat/lonpage.pm:1.111.2.3	Sat Oct 29 05:59:30 2016
+++ rat/lonpage.pm	Sat Oct 29 13:47:21 2016
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Page Handler
 #
-# $Id: lonpage.pm,v 1.111.2.3 2016/10/29 05:59:30 raeburn Exp $
+# $Id: lonpage.pm,v 1.111.2.4 2016/10/29 13:47:21 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -316,6 +316,9 @@
 				      $posthash{'all_submit'}='yes';
 				  }
 			      }
+                              if ($env{'environment.remote'} eq 'on') {
+                                  $posthash{'inhibitmenu'} = 'yes';
+                              }
                               my $output=Apache::lonnet::ssi($src,%posthash);
 			      $output=~s|//(\s*<!--)? BEGIN LON-CAPA Internal.+?// END LON-CAPA Internal\s*(-->)?\s||gs;
                               if (($target eq 'tex') || ($target eq 'tex_answer')) {




More information about the LON-CAPA-cvs mailing list