MediaWiki:Gadget-I18n-js.js: Difference between revisions
From Tardis Wiki, the free Doctor Who reference
Add check to wgPageContentModel
(Fix page view language) |
(Add check to wgPageContentModel) |
||
Line 455: | Line 455: | ||
* - {string} conf.wgContentLanguage The site language. | * - {string} conf.wgContentLanguage The site language. | ||
*/ | */ | ||
if ( conf.wgPageContentModel !== 'wikitext' ) { | if ( conf.wgPageContentModel && conf.wgPageContentModel !== 'wikitext' ) { | ||
conf.wgPageContentLanguage = conf.wgContentLanguage; | conf.wgPageContentLanguage = conf.wgContentLanguage; | ||
} | } |