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

raeburn raeburn at source.lon-capa.org
Sun Jan 27 10:44:19 EST 2019


raeburn		Sun Jan 27 15:44:19 2019 EDT

  Modified files:              
    /loncom/interface	lontiny.pm 
  Log:
  - Check if course needs re-initialization (because of course change)
    when accessing resource via deep link uses default interval between
    checks (600 s).
  
  
Index: loncom/interface/lontiny.pm
diff -u loncom/interface/lontiny.pm:1.5 loncom/interface/lontiny.pm:1.6
--- loncom/interface/lontiny.pm:1.5	Sun Jan 20 02:42:41 2019
+++ loncom/interface/lontiny.pm	Sun Jan 27 15:44:18 2019
@@ -2,7 +2,7 @@
 # Extract domain, courseID, and symb from a shortened URL,
 # and switch role to a role in designated course.
 #
-# $Id: lontiny.pm,v 1.5 2019/01/20 02:42:41 raeburn Exp $
+# $Id: lontiny.pm,v 1.6 2019/01/27 15:44:18 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -44,7 +44,7 @@
     my $r = shift;
     my %user;
     my $handle = &Apache::lonnet::check_for_valid_session($r,undef,\%user);
-    if ($handle ne '') { 
+    if ($handle ne '') {
         my $lonidsdir=$r->dir_config('lonIDsDir');
         &Apache::lonnet::transfer_profile_to_env($lonidsdir,$handle);
         if ($r->uri =~ m{^/tiny/($match_domain)/(\w+)$}) {
@@ -97,7 +97,7 @@
                                     my $update;
                                     # Check if course needs to be re-initialized
                                     my $loncaparev = $r->dir_config('lonVersion');
-                                    my ($result, at reinit) = &Apache::loncommon::needs_coursereinit($loncaparev,20);
+                                    my ($result, at reinit) = &Apache::loncommon::needs_coursereinit($loncaparev);
                                     if ($result eq 'update') {
                                         $update = 1;
                                     } elsif (!-e $env{'request.course.fn'}.'.db') {




More information about the LON-CAPA-cvs mailing list