mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-23 22:45:20 +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
|
||||
// has a ext.cite.style.<lang code>.css file present will be used.
|
||||
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 ) ) ) {
|
||||
$this->styles[] = $langStyleFile;
|
||||
break;
|
||||
|
|
Loading…
Reference in a new issue