[LON-CAPA-cvs] cvs: loncom /interface londocs.pm

raeburn raeburn at source.lon-capa.org
Sat Feb 29 11:25:44 EST 2020


raeburn		Sat Feb 29 16:25:44 2020 EDT

  Modified files:              
    /loncom/interface	londocs.pm 
  Log:
  - Use correct index for flag indicating container is a .page.
  
  
Index: loncom/interface/londocs.pm
diff -u loncom/interface/londocs.pm:1.665 loncom/interface/londocs.pm:1.666
--- loncom/interface/londocs.pm:1.665	Fri Aug 16 14:22:49 2019
+++ loncom/interface/londocs.pm	Sat Feb 29 16:25:44 2020
@@ -1,7 +1,7 @@
 # The LearningOnline Network
 # Documents
 #
-# $Id: londocs.pm,v 1.665 2019/08/16 14:22:49 raeburn Exp $
+# $Id: londocs.pm,v 1.666 2020/02/29 16:25:44 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1232,7 +1232,7 @@
 
     my @pathitems = split(/\&/,$env{'form.folderpath'});
     my @folderconf = split(/\:/,$pathitems[-1]);
-    my $ispage = $folderconf[4];
+    my $ispage = $folderconf[5];
 
     foreach my $item (@possibles) {
         my ($orderidx,$cmd) = split(/:/,$item);
@@ -5637,7 +5637,7 @@
             undef($env{'form.folderpath'});
         } else {
             $folderurl = "uploaded/$coursedom/$coursenum/$folder";
-            if ((split(/\:/,$pathitems[-1]))[4]) {
+            if ((split(/\:/,$pathitems[-1]))[5]) {
                 $folderurl .= '.page';
             } else {
                 $folderurl .= '.sequence';




More information about the LON-CAPA-cvs mailing list