From: Alexandre Emsenhuber Date: Mon, 26 Mar 2012 19:59:23 +0000 (+0200) Subject: Use local context to get messages X-Git-Tag: 1.31.0-rc.0~24122 X-Git-Url: http://git.cyclocoop.org/%22.%24image2.%22?a=commitdiff_plain;h=52565bd9fdb7d5308386fcd18461da487d5dde5f;p=lhc%2Fweb%2Fwiklou.git Use local context to get messages Change-Id: Ibbe6cd92ad3057742a6193471971fb11244e843b --- diff --git a/includes/actions/PurgeAction.php b/includes/actions/PurgeAction.php index 21a6d90419..cd58889db1 100644 --- a/includes/actions/PurgeAction.php +++ b/includes/actions/PurgeAction.php @@ -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() {