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

raeburn raeburn at source.lon-capa.org
Thu Mar 5 17:39:57 EST 2020


raeburn		Thu Mar  5 22:39:57 2020 EDT

  Modified files:              (Branch: version_2_11_X)
    /rat	lonuserstate.pm 
  Log:
  - For 2.11
    Backport 1.158
  
  
Index: rat/lonuserstate.pm
diff -u rat/lonuserstate.pm:1.149.2.2 rat/lonuserstate.pm:1.149.2.3
--- rat/lonuserstate.pm:1.149.2.2	Thu Feb  7 01:51:34 2019
+++ rat/lonuserstate.pm	Thu Mar  5 22:39:57 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Construct and maintain state and binary representation of course for user
 #
-# $Id: lonuserstate.pm,v 1.149.2.2 2019/02/07 01:51:34 raeburn Exp $
+# $Id: lonuserstate.pm,v 1.149.2.3 2020/03/05 22:39:57 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -469,7 +469,11 @@
     # is not a page.  If the resource is a page then it must be
     # assembled (at fetch time?).
 
-    unless ($ispage) {
+    if ($ispage) {
+        if ($token->[2]->{'external'} eq 'true') { # external
+            $turi=~s{^http\://}{/ext/};
+        }
+    } else {
 	$turi=~/\.(\w+)$/;
 	my $embstyle=&Apache::loncommon::fileembstyle($1);
 	if ($token->[2]->{'external'} eq 'true') { # external




More information about the LON-CAPA-cvs mailing list