MediaWiki:Common.js: Verskil tussen weergawes

Content deleted Content added
Fix broken google search; it was searching for " site: kipedia.org" because the substr() call assumed 7 characters in wgServer which is no longer the case with protocol relative urls instead http://, using location.hostname instead
Lyn 419:
google: {
ShortName: 'Google',
Template: "http://www.google.frcom/search?hl=" + mw.config.get( 'wgUserLanguage' ) + "&q={searchTerms}&as_sitesearch=" + mw.config.getencodeURIComponent( 'wgServer' )location.substr(7, mw.config.get( 'wgServer' ).length - 1hostname )
},
yahoo: {
Lyn 427:
wlive: {
ShortName: "Windows Live",
Template: "http://search.live.com/results.aspx?q={searchTerms}&q1=site:" + mw.config.getencodeURIComponent( 'wgServer'location.hostname )
},
 
wikiwix: {
ShortName: 'Wikiwix',
Template: "http://www.wikiwix.com/index.php?action={searchTerms}&lang=" + mw.config.get( 'wgContentLanguage' )
}