Permalink
Browse files

Item14013: make sure zones are stable

... when reloading a page
  • Loading branch information...
MichaelDaum authored and gac410 committed Mar 8, 2016
1 parent e49ed4b commit a8c7b88a32b81360d35dbf61fbe229cd09a76854
Showing with 5 additions and 2 deletions.
  1. +5 −2 core/lib/Foswiki/Render/Zones.pm
@@ -232,7 +232,8 @@ sub _renderZone {
undef $this->{_zones}{script};
}
else {
my @zoneIDs = values %{ $this->{_zones}{$zone} };
my @zoneIDs =
sort { $a->{id} cmp $b->{id} } values %{ $this->{_zones}{$zone} };
foreach my $zoneID (@zoneIDs) {
$this->_visitZoneID( $zoneID, \%visited, \@total );
@@ -306,7 +307,9 @@ sub _visitZoneID {
$visited->{$zoneID} = 1;
foreach my $requiredZoneID ( @{ $zoneID->{requires} } ) {
foreach my $requiredZoneID ( sort { $a->{id} cmp $b->{id} }
@{ $zoneID->{requires} } )
{
my $zoneIDToVisit;
if ( $Foswiki::cfg{MergeHeadAndScriptZones}

0 comments on commit a8c7b88

Please sign in to comment.