User "IAlex" posted a comment on MediaWiki.r93758.

Full URL: 
https://secure.wikimedia.org/wikipedia/mediawiki/wiki/Special:Code/MediaWiki/93758#c20373
Commit summary:

* (bug 15558) Allow includable special pages to be parameterized using wiki 
syntax
* Changed SpecialPageFactory::capturePath() to take the same parameters as 
SpecialPageFactory::executePath() (except the last one) and made it always 
return a bool instead of bool-or-string. The result HTML can be fetched from 
the OutputPage object of the context.
* Added module styles, scritps and messages members to ParserOutput in addition 
to modules. The first one is needed to display Special:RecentChanges correctly 
when transcluded since EnhancedChangesList::beginRecentChangesList() calls 
addModuleStyles( 'mediawiki.special.changeslist' )

Yes, this means that you can use {{Special:Recentchanges|enhanced=0}} to use 
the old changes list. For the ones that wonder, 
{{Special:Recentchanges|uselang=something}} will not work since the Language 
object is forced to the one used by the parser.

Comment:

I used ParserOptions::getUserLang() to match current behaviour, i.e. showing it 
in user's language. Parser::getFunctionLang() returns about always content 
language when parsing page content.

Second one done in r93766.

_______________________________________________
MediaWiki-CodeReview mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-codereview

Reply via email to