Parse limitation warnings as 'text' and in user language
The default limitation warning messages contains wiki markup to get bold text, which does not get parsed with 'escaped' Before using the message class the call was: wfMsgExt( "$limitationType-warning", array( 'parsemag', 'escape' ), $current, $max ); This piece of message does not go into the parser cache. Change-Id: Ibccfacc9a6b9c43491e3b4ca8f5e8f6a6b1efae9
This commit is contained in:
parent
f857f0cd2e
commit
889e988cce
1 changed files with 1 additions and 1 deletions
|
|
@ -3180,7 +3180,7 @@ class Parser {
|
|||
function limitationWarn( $limitationType, $current = '', $max = '' ) {
|
||||
# does no harm if $current and $max are present but are unnecessary for the message
|
||||
$warning = wfMessage( "$limitationType-warning" )->numParams( $current, $max )
|
||||
->inContentLanguage()->escaped();
|
||||
->inLanguage( $this->mOptions->getUserLangObj() )->text();
|
||||
$this->mOutput->addWarning( $warning );
|
||||
$this->addTrackingCategory( "$limitationType-category" );
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue