From dca66e1c4817653cf995f49e35c32a05036b178f Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 17 Dec 2011 13:24:40 +0000 Subject: [PATCH] Use local context to get messages --- includes/specials/SpecialComparePages.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/includes/specials/SpecialComparePages.php b/includes/specials/SpecialComparePages.php index 02863e5c34..9e3c52b981 100644 --- a/includes/specials/SpecialComparePages.php +++ b/includes/specials/SpecialComparePages.php @@ -96,7 +96,7 @@ class SpecialComparePages extends SpecialPage { 'name' => 'unhide', ), ), $this->getContext(), 'compare' ); - $form->setSubmitText( wfMsg( 'compare-submit' ) ); + $form->setSubmitTextMsg( 'compare-submit' ); $form->suppressReset(); $form->setMethod( 'get' ); $form->setSubmitCallback( array( __CLASS__, 'showDiff' ) ); @@ -140,10 +140,10 @@ class SpecialComparePages extends SpecialPage { } $title = Title::newFromText( $value ); if ( !$title instanceof Title ) { - return wfMsgExt( 'compare-invalid-title', 'parse' ); + return $this->msg( 'compare-invalid-title' )->parseAsBlock(); } if ( !$title->exists() ) { - return wfMsgExt( 'compare-title-not-exists', 'parse' ); + return $this->msg( 'compare-title-not-exists' )->parseAsBlock(); } return true; } @@ -154,7 +154,7 @@ class SpecialComparePages extends SpecialPage { } $revision = Revision::newFromId( $value ); if ( $revision === null ) { - return wfMsgExt( 'compare-revision-not-exists', 'parse' ); + return $this->msg( 'compare-revision-not-exists' )->parseAsBlock(); } return true; } -- 2.20.1