Index: trunk/phase3/includes/ProtectionForm.php |
— | — | @@ -447,8 +447,13 @@ |
448 | 448 | $out .= Xml::closeElement( 'fieldset' ); |
449 | 449 | |
450 | 450 | if ( $wgUser->isAllowed( 'editinterface' ) ) { |
451 | | - $linkTitle = Title::makeTitleSafe( NS_MEDIAWIKI, 'protect-dropdown' ); |
452 | | - $link = $wgUser->getSkin()->Link ( $linkTitle, wfMsgHtml( 'protect-edit-reasonlist' ) ); |
| 451 | + $title = Title::newFromText( 'protect-dropdown', NS_MEDIAWIKI ); |
| 452 | + $link = $wgUser->getSkin()->link( |
| 453 | + $title, |
| 454 | + wfMsgHtml( 'protect-edit-reasonlist' ), |
| 455 | + array(), |
| 456 | + array( 'action' => 'edit' ) |
| 457 | + ); |
453 | 458 | $out .= '<p class="mw-protect-editreasons">' . $link . '</p>'; |
454 | 459 | } |
455 | 460 | |
Index: trunk/phase3/includes/Article.php |
— | — | @@ -2469,7 +2469,13 @@ |
2470 | 2470 | |
2471 | 2471 | if( $wgUser->isAllowed( 'editinterface' ) ) { |
2472 | 2472 | $skin = $wgUser->getSkin(); |
2473 | | - $link = $skin->makeLink ( 'MediaWiki:Deletereason-dropdown', wfMsgHtml( 'delete-edit-reasonlist' ) ); |
| 2473 | + $title = Title::newFromText( 'Deletereason-dropdown', NS_MEDIAWIKI ); |
| 2474 | + $link = $skin->link( |
| 2475 | + $title, |
| 2476 | + wfMsgHtml( 'delete-edit-reasonlist' ), |
| 2477 | + array(), |
| 2478 | + array( 'action' => 'edit' ) |
| 2479 | + ); |
2474 | 2480 | $form .= '<p class="mw-delete-editreasons">' . $link . '</p>'; |
2475 | 2481 | } |
2476 | 2482 | |
Index: trunk/phase3/includes/FileDeleteForm.php |
— | — | @@ -194,7 +194,13 @@ |
195 | 195 | |
196 | 196 | if ( $wgUser->isAllowed( 'editinterface' ) ) { |
197 | 197 | $skin = $wgUser->getSkin(); |
198 | | - $link = $skin->makeLink ( 'MediaWiki:Filedelete-reason-dropdown', wfMsgHtml( 'filedelete-edit-reasonlist' ) ); |
| 198 | + $title = Title::newFromText( 'filedelete-reason-dropdown', NS_MEDIAWIKI ); |
| 199 | + $link = $skin->link( |
| 200 | + $title, |
| 201 | + wfMsgHtml( 'filedelete-edit-reasonlist' ), |
| 202 | + array(), |
| 203 | + array( 'action' => 'edit' ) |
| 204 | + ); |
199 | 205 | $form .= '<p class="mw-filedelete-editreasons">' . $link . '</p>'; |
200 | 206 | } |
201 | 207 | |