Index: trunk/extensions/ReaderFeedback/specialpages/ReaderFeedback_body.php |
— | — | @@ -24,7 +24,8 @@ |
25 | 25 | |
26 | 26 | public function execute( $par ) { |
27 | 27 | global $wgRequest, $wgUser, $wgOut; |
28 | | - $confirm = $wgRequest->wasPosted() && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); |
| 28 | + $confirm = $wgRequest->wasPosted() |
| 29 | + && $wgUser->matchEditToken( $wgRequest->getVal( 'wpEditToken' ) ); |
29 | 30 | if( $wgUser->isAllowed( 'feedback' ) ) { |
30 | 31 | if( $wgUser->isBlocked( !$confirm ) ) { |
31 | 32 | $wgOut->blockedPage(); |
— | — | @@ -96,7 +97,8 @@ |
97 | 98 | // Basic permission check |
98 | 99 | if( $wgUser->isAllowed( 'feedback' ) ) { |
99 | 100 | if( $wgUser->isBlocked() ) { |
100 | | - return '<err#><h2>' . wfMsgHtml('blockedtitle') . '</h2>' . wfMsg('badaccess-group0'); |
| 101 | + return '<err#><h2>' . wfMsgHtml('blockedtitle') . '</h2>' . |
| 102 | + wfMsg('badaccess-group0'); |
101 | 103 | } |
102 | 104 | } else { |
103 | 105 | return '<err#><strong>' . wfMsg('badaccess-group0') . '</<strong>'; |
— | — | @@ -165,7 +167,8 @@ |
166 | 168 | if( $form->validatedParams != self::validationKey( $form->oldid, $wgUser->getId() ) ) { |
167 | 169 | return '<err#>' . wfMsg('formerror'); |
168 | 170 | } |
169 | | - $graphLink = SpecialPage::getTitleFor( 'RatingHistory' )->getFullUrl( 'target='.$form->page->getPrefixedUrl() ); |
| 171 | + $rhist = SpecialPage::getTitleFor( 'RatingHistory' ); |
| 172 | + $graphLink = $rhist->getFullUrl( 'target='.$form->page->getPrefixedUrl() ); |
170 | 173 | $talk = $form->page->getTalkPage(); |
171 | 174 | |
172 | 175 | wfLoadExtensionMessages( 'RatingHistory' ); |
— | — | @@ -181,15 +184,27 @@ |
182 | 185 | $dbw->commit(); |
183 | 186 | switch( $ok ) { |
184 | 187 | case self::REVIEW_OK: |
185 | | - return '<suc#>'.wfMsgExt( 'readerfeedback-success', array('parseinline'), |
186 | | - $form->page->getPrefixedText(), $graphLink, $talk->getFullUrl( 'action=edit§ion=new' ) ) . |
187 | | - '<h4>'.wfMsgHtml('ratinghistory-table')."</h4>\n$tallyTable"; |
| 188 | + return '<suc#>' . |
| 189 | + "<div class='plainlinks'>" . |
| 190 | + wfMsgExt( 'readerfeedback-success', array('parseinline'), |
| 191 | + $form->page->getPrefixedText(), $graphLink, |
| 192 | + $talk->getFullUrl( 'action=edit§ion=new' ) ) . |
| 193 | + '<h4>'.wfMsgHtml('ratinghistory-table')."</h4>\n$tallyTable" . |
| 194 | + "</div>"; |
188 | 195 | case self::REVIEW_DUP: |
189 | | - return '<err#>'.wfMsgExt( 'readerfeedback-voted', array('parseinline'), |
190 | | - $form->page->getPrefixedText(), $graphLink, $talk->getFullUrl( 'action=edit§ion=new' ) ); |
| 196 | + return '<err#>' . |
| 197 | + "<div class='plainlinks'>" . |
| 198 | + wfMsgExt( 'readerfeedback-voted', array('parseinline'), |
| 199 | + $form->page->getPrefixedText(), $graphLink, |
| 200 | + $talk->getFullUrl( 'action=edit§ion=new' ) ) . |
| 201 | + "</div>"; |
191 | 202 | default: |
192 | | - return '<err#>'.wfMsgExt( 'readerfeedback-error', array('parseinline'), |
193 | | - $form->page->getPrefixedText(), $graphLink, $talk->getFullUrl( 'action=edit§ion=new' ) ); |
| 203 | + return '<err#>' . |
| 204 | + "<div class='plainlinks'>" . |
| 205 | + wfMsgExt( 'readerfeedback-error', array('parseinline'), |
| 206 | + $form->page->getPrefixedText(), $graphLink, |
| 207 | + $talk->getFullUrl( 'action=edit§ion=new' ) ) . |
| 208 | + "</div>"; |
194 | 209 | } |
195 | 210 | } |
196 | 211 | |