[LON-CAPA-cvs] cvs: loncom(version_2_8_X) /publisher lonpublisher.pm

raeburn raeburn@source.lon-capa.org
Tue, 24 Nov 2009 01:01:28 -0000


raeburn		Tue Nov 24 01:01:28 2009 EDT

  Modified files:              (Branch: version_2_8_X)
    /loncom/publisher	lonpublisher.pm 
  Log:
  - Backport 1.263.
  
  
Index: loncom/publisher/lonpublisher.pm
diff -u loncom/publisher/lonpublisher.pm:1.249.2.2 loncom/publisher/lonpublisher.pm:1.249.2.3
--- loncom/publisher/lonpublisher.pm:1.249.2.2	Tue Nov 24 00:59:48 2009
+++ loncom/publisher/lonpublisher.pm	Tue Nov 24 01:01:28 2009
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # Publication Handler
 #
-# $Id: lonpublisher.pm,v 1.249.2.2 2009/11/24 00:59:48 raeburn Exp $
+# $Id: lonpublisher.pm,v 1.249.2.3 2009/11/24 01:01:28 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -1742,7 +1742,8 @@
 # ------------------------------------------------------------- Trigger updates
     push(@{$modified_urls},[$target,$source]);
     unless ($registered_cleanup) {
-	$r->register_cleanup(\&notify);
+        my $handlers = $r->get_handlers('PerlCleanupHandler');
+        $r->set_handlers('PerlCleanupHandler' => [\&notify,@{$handlers}]);
 	$registered_cleanup=1;
     }