Index: trunk/phase3/includes/Article.php |
— | — | @@ -1208,12 +1208,11 @@ |
1209 | 1209 | # Parse the text and replace links with placeholders |
1210 | 1210 | $wgOut = new OutputPage(); |
1211 | 1211 | |
1212 | | - # Pass the current title along (use linestart default) |
1213 | | - # in case we're creating a wiki page which is different |
1214 | | - # than the currently displayed one (e.g. image pages |
1215 | | - # craeted on file uploads); otherwise, link updates will |
| 1212 | + # Pass the current title along in case we're creating a wiki page |
| 1213 | + # which is different than the currently displayed one (e.g. image |
| 1214 | + # pages created on file uploads); otherwise, link updates will |
1216 | 1215 | # go wrong. |
1217 | | - $wgOut->addWikiTextWithTitle( $text, true, $this->mTitle ); |
| 1216 | + $wgOut->addWikiTextWithTitle( $text, $this->mTitle ); |
1218 | 1217 | |
1219 | 1218 | # Look up the links in the DB and add them to the link cache |
1220 | 1219 | $wgOut->transformBuffer( RLH_FOR_UPDATE ); |
Index: trunk/phase3/includes/OutputPage.php |
— | — | @@ -232,20 +232,19 @@ |
233 | 233 | */ |
234 | 234 | function addWikiText( $text, $linestart = true ) { |
235 | 235 | global $wgTitle; |
236 | | - $this->addWikiTextTitle($text, $linestart, $wgTitle); |
| 236 | + $this->addWikiTextTitle($text, $wgTitle, $linestart); |
237 | 237 | } |
238 | 238 | |
239 | | - function addWikiTextWithTitle($text, $linestart = true, &$title) { |
240 | | - $this->addWikiTextTitle($text, $linestart, $title); |
| 239 | + function addWikiTextWithTitle($text, &$title, $linestart = true) { |
| 240 | + $this->addWikiTextTitle($text, $title, $linestart); |
241 | 241 | } |
242 | 242 | |
243 | | - function addWikiTextTitle($text, $linestart, &$title) { |
| 243 | + function addWikiTextTitle($text, &$title, $linestart) { |
244 | 244 | global $wgParser, $wgUseTidy; |
245 | 245 | $parserOutput = $wgParser->parse( $text, $title, $this->mParserOptions, $linestart ); |
246 | 246 | $this->mLanguageLinks += $parserOutput->getLanguageLinks(); |
247 | 247 | $this->mCategoryLinks += $parserOutput->getCategoryLinks(); |
248 | 248 | $this->addHTML( $parserOutput->getText() ); |
249 | | - |
250 | 249 | } |
251 | 250 | |
252 | 251 | /** |