Index: trunk/extensions/Renameuser/Renameuser_body.php |
— | — | @@ -308,8 +308,12 @@ |
309 | 309 | !$suppressRedirect |
310 | 310 | ); |
311 | 311 | if ( $success === true ) { |
| 312 | + # oldPage is not known in case of redirect suppression |
312 | 313 | $oldLink = Linker::link( $oldPage, null, array(), array( 'redirect' => 'no' ) ); |
| 314 | + |
| 315 | + # newPage is always known because the move was successful |
313 | 316 | $newLink = Linker::linkKnown( $newPage ); |
| 317 | + |
314 | 318 | $output .= Html::rawElement( |
315 | 319 | 'li', |
316 | 320 | array( 'class' => 'mw-renameuser-pm' ), |