From 127c44f4fcb0d7d33a8d34b6847bf02e75a0c939 Mon Sep 17 00:00:00 2001 From: Arash Boostani Date: Wed, 6 May 2009 04:17:48 +0000 Subject: [PATCH] Fixed problem with call to closeSectionContainers that contained references. Only the function definition needs to indicate that the input variable is a reference, not the function call. --- includes/parser/Parser.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/parser/Parser.php b/includes/parser/Parser.php index fa0b57d651..e56157c8ae 100644 --- a/includes/parser/Parser.php +++ b/includes/parser/Parser.php @@ -3687,7 +3687,7 @@ class Parser $hLevel = $hLevelMatches[1]; if ( $i != 0 ) { # we don't have an open div for section 0, so don't try to close it # close any open divs for sections with headers that are <= to the next header level - $this->closeSectionContainers( $hLevel, &$currentHLevel, &$full, &$openDivs); + $this->closeSectionContainers( $hLevel, $currentHLevel, $full, $openDivs); } $currentHLevel = $hLevel; } @@ -3701,7 +3701,7 @@ class Parser # if we've outputed the last section of the article, close any open divs that are remaining if ( $i == ( count($blocks) - 1) && isset($currentHLevel) ) { - $this->closeSectionContainers( $hLevel, &$currentHLevel, &$full, &$openDivs); + $this->closeSectionContainers( $hLevel, $currentHLevel, $full, $openDivs); } } -- 2.20.1