diff options
author | Umherirrender <umherirrender_de.wp@web.de> | 2018-09-18 22:01:56 +0200 |
---|---|---|
committer | Umherirrender <umherirrender_de.wp@web.de> | 2019-09-21 11:14:54 +0000 |
commit | db3a8beb778ba841cf6bf795312bdba796c58ee5 (patch) | |
tree | 56e41f521c9843def8bf2bcc2f6eaef47bde62df /includes/ProtectionForm.php | |
parent | bd980451109fb588c30aa5059ddada5ea4f6492e (diff) | |
download | mediawikicore-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.php | 4 |
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; } |