Index: trunk/extensions/FlaggedRevs/frontend/specialpages/actions/Stabilization_body.php |
— | — | @@ -36,7 +36,8 @@ |
37 | 37 | $out->showErrorPage( 'notargettitle', 'notargettext' ); |
38 | 38 | return; |
39 | 39 | } |
40 | | - |
| 40 | + $this->getSkin()->setRelevantTitle( $title ); |
| 41 | + |
41 | 42 | $this->form = new PageStabilityGeneralForm( $user ); |
42 | 43 | $form = $this->form; // convenience |
43 | 44 | |
Index: trunk/extensions/FlaggedRevs/frontend/specialpages/reports/QualityOversight_body.php |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | } |
43 | 43 | |
44 | 44 | # Create a LogPager item to get the results and a LogEventsList item to format them... |
45 | | - $loglist = new LogEventsList( $this->getUser()->getSkin(), $out, 0 ); |
| 45 | + $loglist = new LogEventsList( $this->getContext()->getSkin(), $out, 0 ); |
46 | 46 | $pager = new LogPager( $loglist, 'review', $this->user, '', '', $conds ); |
47 | 47 | |
48 | 48 | # Explanatory text |
Index: trunk/extensions/FlaggedRevs/frontend/FlaggedRevsLogView.php |
— | — | @@ -34,9 +34,8 @@ |
35 | 35 | * @return string |
36 | 36 | */ |
37 | 37 | public static function stabilityLogLinks( $title, $timestamp, $params ) { |
38 | | - global $wgUser; |
39 | 38 | # Add history link showing edits right before the config change |
40 | | - $hist = $wgUser->getSkin()->link( |
| 39 | + $hist = Linker::link( |
41 | 40 | $title, |
42 | 41 | wfMsgHtml( 'hist' ), |
43 | 42 | array(), |
— | — | @@ -97,7 +96,7 @@ |
98 | 97 | * Create revision, diff, and history links for log line entry |
99 | 98 | */ |
100 | 99 | public static function reviewLogLinks( $action, $title, $params ) { |
101 | | - global $wgUser, $wgLang; |
| 100 | + global $wgLang; |
102 | 101 | $links = ''; |
103 | 102 | # Show link to page with oldid=x as well as the diff to the former stable rev. |
104 | 103 | # Param format is <rev id, last stable id, rev timestamp>. |
— | — | @@ -110,7 +109,7 @@ |
111 | 110 | ? 'review-logentry-diff2' // unreviewed |
112 | 111 | : 'review-logentry-diff'; // reviewed |
113 | 112 | $links .= '('; |
114 | | - $links .= $wgUser->getSkin()->linkKnown( |
| 113 | + $links .= Linker::linkKnown( |
115 | 114 | $title, |
116 | 115 | wfMsgHtml( $msg ), |
117 | 116 | array(), |
— | — | @@ -124,7 +123,7 @@ |
125 | 124 | : $params[2]; |
126 | 125 | $time = $wgLang->timeanddate( $ts, true ); |
127 | 126 | $links .= ' ('; |
128 | | - $links .= $wgUser->getSkin()->linkKnown( |
| 127 | + $links .= Linker::linkKnown( |
129 | 128 | $title, |
130 | 129 | wfMsgHtml( 'review-logentry-id', $revId, $time ), |
131 | 130 | array(), |
Index: trunk/extensions/FlaggedRevs/frontend/RejectConfirmationFormUI.php |
— | — | @@ -130,7 +130,6 @@ |
131 | 131 | |
132 | 132 | $form .= '</div>'; |
133 | 133 | |
134 | | - $skin = $this->form->getUser()->getSkin(); |
135 | 134 | $reviewTitle = SpecialPage::getTitleFor( 'RevisionReview' ); |
136 | 135 | $form .= Xml::openElement( 'form', |
137 | 136 | array( 'method' => 'POST', 'action' => $reviewTitle->getFullUrl() ) ); |
— | — | @@ -146,7 +145,7 @@ |
147 | 146 | 'wpReason', 120, $defaultSummary, array( 'maxlength' => 200 ) ) . "<br />"; |
148 | 147 | $form .= Html::input( 'wpSubmit', wfMsg( 'revreview-reject-confirm' ), 'submit' ); |
149 | 148 | $form .= ' '; |
150 | | - $form .= $skin->link( $this->form->getPage(), wfMsg( 'revreview-reject-cancel' ), |
| 149 | + $form .= Linker::link( $this->form->getPage(), wfMsg( 'revreview-reject-cancel' ), |
151 | 150 | array( 'onClick' => 'history.back(); return history.length <= 1;' ), |
152 | 151 | array( 'oldid' => $this->form->getRefId(), 'diff' => $this->form->getOldId() ) ); |
153 | 152 | $form .= Xml::closeElement( 'form' ); |