Skip to content

Commit

Permalink
allow StubSorter to load on testwiki
Browse files Browse the repository at this point in the history
  • Loading branch information
NovemLinguae committed Aug 26, 2024
1 parent b98e4e0 commit 52cbe4f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/submissions.js
Original file line number Diff line number Diff line change
Expand Up @@ -1600,7 +1600,7 @@
const isClassStub = $( this ).val() === 'Stub';
$afch.find( '#stubSorterWrapper' ).toggleClass( 'hidden', !isClassStub );
if ( isClassStub ) {
if ( mw.config.get( 'wgDBname' ) !== 'enwiki' ) {
if ( mw.config.get( 'wgDBname' ) !== 'enwiki' && mw.config.get( 'wgDBname' ) !== 'testwiki' ) {
console.warn( 'no stub sorting script available for this language wiki' );
return;
}
Expand Down

0 comments on commit 52cbe4f

Please sign in to comment.