Use local context to get messages
authorAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 26 Mar 2012 19:59:23 +0000 (21:59 +0200)
committerAlexandre Emsenhuber <ialex.wiki@gmail.com>
Mon, 26 Mar 2012 19:59:23 +0000 (21:59 +0200)
Change-Id: Ibbe6cd92ad3057742a6193471971fb11244e843b

includes/actions/PurgeAction.php

index 21a6d90..cd58889 100644 (file)
@@ -79,15 +79,15 @@ class PurgeAction extends FormAction {
        }
 
        protected function alterForm( HTMLForm $form ) {
-               $form->setSubmitText( wfMsg( 'confirm_purge_button' ) );
+               $form->setSubmitTextMsg( 'confirm_purge_button' );
        }
 
        protected function preText() {
-               return wfMessage( 'confirm-purge-top' )->parse();
+               return $this->msg( 'confirm-purge-top' )->parse();
        }
 
        protected function postText() {
-               return wfMessage( 'confirm-purge-bottom' )->parse();
+               return $this->msg( 'confirm-purge-bottom' )->parse();
        }
 
        public function onSuccess() {