Permalink
Browse files

Item13944: Fix Func::addToHEAD

Deprecated, but still used by older extensions.
  • Loading branch information...
1 parent 1c07651 commit 7c038d0bcc90450a8106fd7b674c29f9728c32ba @gac410 gac410 committed Feb 4, 2016
Showing with 3 additions and 1 deletion.
  1. +3 −1 core/lib/Foswiki/Func.pm
@@ -3802,7 +3802,9 @@ See Foswiki:Development/UpdatingExtensionsScriptZone for more details.
=cut
sub addToHEAD {
- $Foswiki::Plugins::SESSION->addToZone( 'head', @_ );
+ my $session = $Foswiki::Plugins::SESSION;
+ ASSERT($session) if DEBUG;
+ $session->zones()->addToZone( 'head', @_ );
}
=begin TML

0 comments on commit 7c038d0

Please sign in to comment.