MediaWiki
master
|
SpecialMypage, SpecialMytalk and SpecialMycontributions special pages are used to get user independant links pointing to the user page, talk page and list of contributions. More...
Public Member Functions | |
__construct ($name) |
SpecialMypage, SpecialMytalk and SpecialMycontributions special pages are used to get user independant links pointing to the user page, talk page and list of contributions.
This can let us cache a single copy of any generated content for all users. Superclass for any RedirectSpecialPage which redirects the user to a particular article (as opposed to user contributions, logs, etc.).
For security reasons these special pages are restricted to pass on the following subset of GET parameters to the target page while removing all others:
This hook allows extensions which add GET parameters like FlaggedRevs to retain those parameters when redirecting using special pages.
$wgHooks['RedirectSpecialArticleRedirectParams'][] = 'MyExtensionHooks::onRedirectSpecialArticleRedirectParams'; public static function onRedirectSpecialArticleRedirectParams( &$redirectParams ) { $redirectParams[] = 'stable'; return true; }
Definition at line 1203 of file SpecialPage.php.
RedirectSpecialArticle::__construct | ( | $ | name | ) |