Index: trunk/extensions/MultilingualLiquidThreads/LiquidThreads/classes/View.php |
— | — | @@ -2133,7 +2133,7 @@ |
2134 | 2134 | } |
2135 | 2135 | |
2136 | 2136 | static function parseSignature( $sig ) { |
2137 | | - global $wgParser, $wgOut, $wgTitle; |
| 2137 | + global $wgOut; |
2138 | 2138 | |
2139 | 2139 | static $parseCache = array(); |
2140 | 2140 | $sigKey = md5( $sig ); |
— | — | @@ -2142,11 +2142,6 @@ |
2143 | 2143 | return $parseCache[$sigKey]; |
2144 | 2144 | } |
2145 | 2145 | |
2146 | | - // Parser gets antsy about parser options here if it hasn't parsed anything before. |
2147 | | - $wgParser->clearState(); |
2148 | | - $wgParser->setTitle( $wgTitle ); |
2149 | | - $wgParser->mOptions = new ParserOptions; |
2150 | | - |
2151 | 2146 | $sig = $wgOut->parseInline( $sig ); |
2152 | 2147 | |
2153 | 2148 | $parseCache[$sigKey] = $sig; |
— | — | @@ -2159,17 +2154,12 @@ |
2160 | 2155 | |
2161 | 2156 | $title = $wgTitle ? $wgTitle : $user->getUserPage()->getTitle(); |
2162 | 2157 | |
2163 | | - // Parser gets antsy about parser options here if it hasn't parsed anything before. |
2164 | | - $wgParser->clearState(); |
2165 | | - $wgParser->setTitle( $title ); |
2166 | | - $wgParser->mOptions = new ParserOptions; |
2167 | | - |
2168 | 2158 | $sig = $wgParser->preSaveTransform( |
2169 | 2159 | $sig, |
2170 | 2160 | $title, |
2171 | 2161 | $user, |
2172 | | - $wgParser->mOptions, |
2173 | | - false |
| 2162 | + new ParserOptions, |
| 2163 | + true |
2174 | 2164 | ); |
2175 | 2165 | |
2176 | 2166 | return $sig; |