r21778 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21777‎ | r21778 | r21779 >
Date:22:56, 1 May 2007
Author:sanbeg
Status:old
Tags:
Comment:
Fix my own stupid patching error
Modified paths:
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -3212,18 +3212,8 @@
32133213 # replace ==section headers==
32143214 # XXX this needs to go away once we have a better parser.
32153215 if ( !$this->ot['wiki'] && !$this->ot['pre'] && $replaceHeadings ) {
3216 - if( !is_null( $title ) ) {
3217 -
3218 - #Follow redirects
3219 - $redirect = new Article($title);
3220 - $redirect = $redirect->followRedirect();
3221 - if( ! ($redirect instanceof Title))
3222 - $redirect = $title;
3223 -
3224 -
3225 - $encodedname = base64_encode($redirect->getPrefixedDBkey());
3226 - }
3227 -
 3216+ if( !is_null( $title ) )
 3217+ $encodedname = base64_encode($title->getPrefixedDBkey());
32283218 else
32293219 $encodedname = base64_encode("");
32303220 $m = preg_split('/(^={1,6}.*?={1,6}\s*?$)/m', $text, -1,