SpecialCiteThisPage: Fix string interpolation

Bug: T314096
Change-Id: I591032e07cdffff5b78b6f16a2bc478c4c643a4c
This commit is contained in:
Reedy 2022-11-04 16:17:09 -06:00
parent d6607c9f58
commit 75f80d1889

View file

@ -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" );
}
}