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

Full URL: http://www.mediawiki.org/wiki/Special:Code/MediaWiki/93758#c20788
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:

A caller in SpecialPage.php needs updating to pass the $context parameter. 
Though, this isn't called from anywhere, and is deprecated from 1.18...

<source lang="php">
        static function capturePath( &$title ) {
                return SpecialPageFactory::capturePath( $title );
        }
</source>

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

Reply via email to