https://bugzilla.wikimedia.org/show_bug.cgi?id=30734
Krinkle <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Krinkle <[email protected]> 2011-09-03 16:10:16 UTC --- There is a structure like that that is about as common, a little bit better: var xBase = 'http://x.wikimedia.org'; if ( mw.config.get( 'wgServer' ).indexOf('https://') === 0 ) { var xBase = 'https://secure.wikimedia.org/wikipedia/x'; } Except that this one is subject to the same bug, because wgServer doesn't contain http nor https. Until https is on all wikis, wikis should use protocol-relative where possible and keep these if-statements for wikis that don't yet. -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
