Skip to content

Commit

Permalink
Item13944: Fix Func::addToHEAD
Browse files Browse the repository at this point in the history
Deprecated, but still used by older extensions.
  • Loading branch information
gac410 committed Feb 4, 2016
1 parent 1c07651 commit 7c038d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion core/lib/Foswiki/Func.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7c038d0

Please sign in to comment.