--- loncom/publisher/lonpublisher.pm 2009/08/14 12:26:08 1.258.2.2 +++ loncom/publisher/lonpublisher.pm 2009/11/24 01:11:53 1.258.2.3 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # Publication Handler # -# $Id: lonpublisher.pm,v 1.258.2.2 2009/08/14 12:26:08 raeburn Exp $ +# $Id: lonpublisher.pm,v 1.258.2.3 2009/11/24 01:11:53 raeburn Exp $ # # Copyright Michigan State University Board of Trustees # @@ -1747,7 +1747,8 @@ sub phasetwo { # ------------------------------------------------------------- Trigger updates push(@{$modified_urls},[$target,$source]); unless ($registered_cleanup) { - $r->register_cleanup(\¬ify); + my $handlers = $r->get_handlers('PerlCleanupHandler'); + $r->set_handlers('PerlCleanupHandler' => [\¬ify,@{$handlers}]); $registered_cleanup=1; }