12 $title = $article->getTitle();
14 if ( ( $title->getNamespace() === NS_USER || $title->getNamespace() ===
NS_USER_TALK ) &&
15 ( $oldUser && $oldUser->isAnon() )
18 $page = Title::makeTitle( NS_USER, str_replace(
' ',
'_', $title->getBaseText() ) )
20 $out = $article->getContext()->getOutput();
28 'showIfEmpty' =>
false,
29 'msgKey' => [
'renameuser-renamed-notice', $title->getBaseText() ]
46 if ( $id && $sp->getUser()->isAllowed(
'renameuser' ) ) {
47 $tools[
'renameuser'] = $sp->getLinkRenderer()->makeKnownLink(
48 SpecialPage::getTitleFor(
'Renameuser' ),
49 $sp->msg(
'renameuser-linkoncontribs', $nt->getText() )->text(),
50 [
'title' => $sp->msg(
'renameuser-linkoncontribs-text', $nt->getText() )->parse() ],
51 [
'oldusername' => $nt->getText() ]
62 $types[] =
'renameuser';
static showLogExtract(&$out, $types=[], $page='', $user='', $param=[])
Show log extract.
static onGetLogTypesOnUser(array &$types)
So users can just type in a username for target and it'll work.
static onShowMissingArticle( $article)
Show a log if the user has been renamed and point to the new username.
static onContributionsToolLinks( $id, $nt, array &$tools, SpecialPage $sp)
Shows link to Special:Renameuser on Special:Contributions/foo.
Parent class for all special pages.
static newFromName( $name, $validate='valid')
Static factory method for creation from username.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
The wiki should then use memcached to cache various data To use multiple just add more items to the array To increase the weight of a make its entry a array("192.168.0.1:11211", 2))