Last modified: 2011-06-06 21:25:54 UTC
wfMessage('mainpage')->inContentLanguage() always gives the content language, even if it is overrriden by $wgForceUIMsgAsContentMsg php maintenance/eval.php > $wgContLang = Language::factory('en'); > $wgLang = Language::factory('fr'); > $wgForceUIMsgAsContentMsg[] = 'mainpage'; > echo wfMsgForContent('mainpage'); Accueil > echo wfMessage('mainpage')->inContentLanguage()->text(); Main Page
I can fix this.
Is this a regression from 1.16 ? (In reply to comment #1) > I can fix this. Awesome.
(In reply to comment #2) > Is this a regression from 1.16 ? Depends on if those kind of calls have been converted a lot.
r89585.
Great, thanks Niklas. Krinkle, it was a regression for places that used WfMsgForContent and were changed to use wfMessage()->inContentLanguage().