mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-27 08:20:02 +00:00
Merge "Use - instead of _ in LESS file names as language code"
This commit is contained in:
commit
160b0d05d8
|
@ -27,7 +27,7 @@ class CiteCSSFileModule extends FileModule {
|
||||||
// Get the content language code, and all the fallbacks. The first that
|
// Get the content language code, and all the fallbacks. The first that
|
||||||
// has a ext.cite.style.<lang code>.css file present will be used.
|
// has a ext.cite.style.<lang code>.css file present will be used.
|
||||||
foreach ( [ $contLang->getCode(), ...$contLang->getFallbackLanguages() ] as $lang ) {
|
foreach ( [ $contLang->getCode(), ...$contLang->getFallbackLanguages() ] as $lang ) {
|
||||||
$langStyleFile = 'ext.cite.style.' . strtr( $lang, '-', '_' ) . '.less';
|
$langStyleFile = "ext.cite.style.$lang.less";
|
||||||
if ( file_exists( $this->getLocalPath( $langStyleFile ) ) ) {
|
if ( file_exists( $this->getLocalPath( $langStyleFile ) ) ) {
|
||||||
$this->styles[] = $langStyleFile;
|
$this->styles[] = $langStyleFile;
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue