Index: trunk/extensions/LiquidThreads/pages/SpecialMoveThread.php |
— | — | @@ -1,10 +1,9 @@ |
2 | 2 | <?php |
3 | | -if ( !defined( 'MEDIAWIKI' ) ) die; |
4 | 3 | |
5 | 4 | class SpecialMoveThread extends ThreadActionPage { |
6 | 5 | /** |
7 | | - * @see SpecialPage::getDescription |
8 | | - */ |
| 6 | + * @see SpecialPage::getDescription |
| 7 | + */ |
9 | 8 | function getDescription() { |
10 | 9 | return wfMsg( 'lqt_movethread' ); |
11 | 10 | } |
— | — | @@ -35,12 +34,10 @@ |
36 | 35 | // Generate introduction |
37 | 36 | $intro = ''; |
38 | 37 | |
39 | | - global $wgUser; |
40 | | - $sk = $wgUser->getSkin(); |
41 | 38 | $page = $this->mThread->getTitle()->getPrefixedText(); |
42 | 39 | |
43 | 40 | $edit_text = wfMsgExt( 'lqt_move_torename_edit', 'parseinline' ); |
44 | | - $edit_link = $sk->link( |
| 41 | + $edit_link = Linker::link( |
45 | 42 | $this->mThread->title(), |
46 | 43 | $edit_text, |
47 | 44 | array(), |
— | — | @@ -103,13 +100,12 @@ |
104 | 101 | if ( $rightsResult !== true ) |
105 | 102 | return $rightsResult; |
106 | 103 | |
107 | | - // TODO no status code from this method. |
| 104 | + // @todo No status code from this method. |
108 | 105 | $this->mThread->moveToPage( $newtitle, $reason, true ); |
109 | 106 | |
110 | | - global $wgOut, $wgUser; |
111 | | - $sk = $wgUser->getSkin(); |
| 107 | + global $wgOut; |
112 | 108 | $wgOut->addHTML( wfMsgExt( 'lqt_move_success', array( 'parse', 'replaceafter' ), |
113 | | - array( $sk->link( $newtitle ) ) ) ); |
| 109 | + array( Linker::link( $newtitle ) ) ) ); |
114 | 110 | |
115 | 111 | return true; |
116 | 112 | } |