r2848 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2847‎ | r2848 | r2849 >
Date:21:25, 26 March 2004
Author:vibber
Status:old
Tags:
Comment:
Fix missing initialization
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -45,7 +45,7 @@
4646 class Parser
4747 {
4848 # Cleared with clearState():
49 - var $mOutput, $mAutonumber, $mLastSection, $mDTopen, $mStripState;
 49+ var $mOutput, $mAutonumber, $mLastSection, $mDTopen, $mStripState = array();
5050 var $mVariables, $mIncludeCount;
5151
5252 # Temporary:
@@ -62,9 +62,9 @@
6363 $this->mAutonumber = 0;
6464 $this->mLastSection = "";
6565 $this->mDTopen = false;
66 - $this->mStripState = false;
6766 $this->mVariables = false;
6867 $this->mIncludeCount = array();
 68+ $this->mStripState = array();
6969 }
7070
7171 # First pass--just handle <nowiki> sections, pass the rest off
@@ -135,6 +135,7 @@
136136 {
137137 $render = ($this->mOutputType == OT_HTML);
138138 $nowiki_content = array();
 139+ $hiero_content = array();
139140 $math_content = array();
140141 $pre_content = array();
141142

Status & tagging log