Index: trunk/phase3/includes/specials/SpecialComparePages.php |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | 'name' => 'unhide', |
98 | 98 | ), |
99 | 99 | ), $this->getContext(), 'compare' ); |
100 | | - $form->setSubmitText( wfMsg( 'compare-submit' ) ); |
| 100 | + $form->setSubmitTextMsg( 'compare-submit' ); |
101 | 101 | $form->suppressReset(); |
102 | 102 | $form->setMethod( 'get' ); |
103 | 103 | $form->setSubmitCallback( array( __CLASS__, 'showDiff' ) ); |
— | — | @@ -140,10 +140,10 @@ |
141 | 141 | } |
142 | 142 | $title = Title::newFromText( $value ); |
143 | 143 | if ( !$title instanceof Title ) { |
144 | | - return wfMsgExt( 'compare-invalid-title', 'parse' ); |
| 144 | + return $this->msg( 'compare-invalid-title' )->parseAsBlock(); |
145 | 145 | } |
146 | 146 | if ( !$title->exists() ) { |
147 | | - return wfMsgExt( 'compare-title-not-exists', 'parse' ); |
| 147 | + return $this->msg( 'compare-title-not-exists' )->parseAsBlock(); |
148 | 148 | } |
149 | 149 | return true; |
150 | 150 | } |
— | — | @@ -154,7 +154,7 @@ |
155 | 155 | } |
156 | 156 | $revision = Revision::newFromId( $value ); |
157 | 157 | if ( $revision === null ) { |
158 | | - return wfMsgExt( 'compare-revision-not-exists', 'parse' ); |
| 158 | + return $this->msg( 'compare-revision-not-exists' )->parseAsBlock(); |
159 | 159 | } |
160 | 160 | return true; |
161 | 161 | } |