Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3212,18 +3212,8 @@ |
3213 | 3213 | # replace ==section headers== |
3214 | 3214 | # XXX this needs to go away once we have a better parser. |
3215 | 3215 | 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()); |
3228 | 3218 | else |
3229 | 3219 | $encodedname = base64_encode(""); |
3230 | 3220 | $m = preg_split('/(^={1,6}.*?={1,6}\s*?$)/m', $text, -1, |