aboutsummaryrefslogtreecommitdiffstats
path: root/includes/ProtectionForm.php
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2018-09-18 22:01:56 +0200
committerUmherirrender <umherirrender_de.wp@web.de>2019-09-21 11:14:54 +0000
commitdb3a8beb778ba841cf6bf795312bdba796c58ee5 (patch)
tree56e41f521c9843def8bf2bcc2f6eaef47bde62df /includes/ProtectionForm.php
parentbd980451109fb588c30aa5059ddada5ea4f6492e (diff)
downloadmediawikicore-db3a8beb778ba841cf6bf795312bdba796c58ee5.tar.gz
mediawikicore-db3a8beb778ba841cf6bf795312bdba796c58ee5.zip
Pass language to Status::getWikiText
Avoid use of $wgLang Change-Id: I9cd633a20c5c60e56a101a9a699eea6db8b8eef0
Diffstat (limited to 'includes/ProtectionForm.php')
-rw-r--r--includes/ProtectionForm.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php
index a1be27184838..3e639b92a2e8 100644
--- a/includes/ProtectionForm.php
+++ b/includes/ProtectionForm.php
@@ -333,7 +333,9 @@ class ProtectionForm {
);
if ( !$status->isOK() ) {
- $this->show( $out->parseInlineAsInterface( $status->getWikiText() ) );
+ $this->show( $out->parseInlineAsInterface(
+ $status->getWikiText( false, false, $this->mContext->getLanguage() )
+ ) );
return false;
}