pass Language to wfMessage() calls
Pass the Language object to the wfMessage calls in LogPage::getTitleLink() and LogPage::formatBlockFlags(). Change-Id: I4f8347d6616ee0e6be31b268679b398e108680c0
This commit is contained in:
parent
23477c7ef6
commit
fa569beea3
1 changed files with 4 additions and 2 deletions
|
|
@ -417,7 +417,8 @@ class LogPage {
|
|||
# Use the language name for log titles, rather than Log/X
|
||||
if( $name == 'Log' ) {
|
||||
$titleLink = Linker::link( $title, LogPage::logName( $par ) );
|
||||
$titleLink = wfMessage( 'parentheses' )->rawParams( $titleLink )->escaped();
|
||||
$titleLink = wfMessage( 'parentheses' )->inLanguage( $lang )
|
||||
->rawParams( $titleLink )->escaped();
|
||||
} else {
|
||||
$titleLink = Linker::link( $title );
|
||||
}
|
||||
|
|
@ -551,7 +552,8 @@ class LogPage {
|
|||
for( $i = 0; $i < count( $flags ); $i++ ) {
|
||||
$flags[$i] = self::formatBlockFlag( $flags[$i], $lang );
|
||||
}
|
||||
return wfMessage( 'parentheses' )->rawParams( $lang->commaList( $flags ) )->escaped();
|
||||
return wfMessage( 'parentheses' )->inLanguage( $lang )
|
||||
->rawParams( $lang->commaList( $flags ) )->escaped();
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue