mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CiteThisPage
synced 2024-11-23 15:16:46 +00:00
SpecialCiteThisPage: Fix string interpolation
Bug: T314096 Change-Id: I591032e07cdffff5b78b6f16a2bc478c4c643a4c
This commit is contained in:
parent
d6607c9f58
commit
75f80d1889
|
@ -180,10 +180,10 @@ class SpecialCiteThisPage extends FormSpecialPage {
|
|||
$dir = __DIR__ . '/../';
|
||||
$contentLang = $this->getContentLanguage();
|
||||
$code = $contentLang->lc( $contentLang->getCode() );
|
||||
if ( file_exists( "${dir}citethispage-content-$code" ) ) {
|
||||
$msg = file_get_contents( "${dir}citethispage-content-$code" );
|
||||
} elseif ( file_exists( "${dir}citethispage-content" ) ) {
|
||||
$msg = file_get_contents( "${dir}citethispage-content" );
|
||||
if ( file_exists( "{$dir}citethispage-content-$code" ) ) {
|
||||
$msg = file_get_contents( "{$dir}citethispage-content-$code" );
|
||||
} elseif ( file_exists( "{$dir}citethispage-content" ) ) {
|
||||
$msg = file_get_contents( "{$dir}citethispage-content" );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue