Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1,5 +1,8 @@ |
| 2 | +#-*- tab-width:4 c-basic-offset:4 -*- */ |
2 | 3 | <?php |
| 4 | + |
3 | 5 | /** |
| 6 | + * |
4 | 7 | * File for Parser and related classes |
5 | 8 | * |
6 | 9 | * @addtogroup Parser |
— | — | @@ -96,7 +99,7 @@ |
97 | 100 | */ |
98 | 101 | # Persistent: |
99 | 102 | var $mTagHooks, $mFunctionHooks, $mFunctionSynonyms, $mVariables; |
100 | | - |
| 103 | + |
101 | 104 | # Cleared with clearState(): |
102 | 105 | var $mOutput, $mAutonumber, $mDTopen, $mStripState; |
103 | 106 | var $mIncludeCount, $mArgStack, $mLastSection, $mInPre; |
— | — | @@ -130,7 +133,7 @@ |
131 | 134 | $this->mFunctionSynonyms = array( 0 => array(), 1 => array() ); |
132 | 135 | $this->mFirstCall = true; |
133 | 136 | } |
134 | | - |
| 137 | + |
135 | 138 | /** |
136 | 139 | * Do various kinds of initialisation on the first call of the parser |
137 | 140 | */ |
— | — | @@ -138,12 +141,12 @@ |
139 | 142 | if ( !$this->mFirstCall ) { |
140 | 143 | return; |
141 | 144 | } |
142 | | - |
| 145 | + |
143 | 146 | wfProfileIn( __METHOD__ ); |
144 | 147 | global $wgAllowDisplayTitle, $wgAllowSlowParserFunctions; |
145 | | - |
| 148 | + |
146 | 149 | $this->setHook( 'pre', array( $this, 'renderPreTag' ) ); |
147 | | - |
| 150 | + |
148 | 151 | $this->setFunctionHook( 'int', array( 'CoreParserFunctions', 'intFunction' ), SFH_NO_HASH ); |
149 | 152 | $this->setFunctionHook( 'ns', array( 'CoreParserFunctions', 'ns' ), SFH_NO_HASH ); |
150 | 153 | $this->setFunctionHook( 'urlencode', array( 'CoreParserFunctions', 'urlencode' ), SFH_NO_HASH ); |