Skip to content

Commit

Permalink
Merge pull request #341 from wikimedia/fix-credits-for-mul-lang
Browse files Browse the repository at this point in the history
Fix credits for multilingual wikisource
  • Loading branch information
samwilson committed Mar 12, 2021
2 parents 5d83e2d + 494af16 commit e94bf22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Repository/CreditRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function __construct( ReplicasClient $client ) {
*/
public function getDatabaseName( $domain, $family ) {
if ( $family === 'wikisource' ) {
if ( in_array( $domain, [ 'old', 'www', 'mul' ] ) ) {
if ( in_array( $domain, [ '', 'old', 'www', 'mul' ] ) ) {
$dbname = 'sourceswiki';
} elseif ( $domain === 'zh-min-nan' ) {
$dbname = 'zh_min_nanwikisource';
Expand Down

0 comments on commit e94bf22

Please sign in to comment.