13 if ( ( $title->getNamespace() === NS_USER || $title->getNamespace() ===
NS_USER_TALK ) &&
14 ( $oldUser && $oldUser->isAnon() )
17 $page = Title::makeTitle( NS_USER,
str_replace(
' ',
'_', $title->getBaseText() ) )
27 'showIfEmpty' =>
false,
28 'msgKey' => [
'renameuser-renamed-notice', $title->getBaseText() ]
45 if ( $id && $sp->getUser()->isAllowed(
'renameuser' ) ) {
46 $tools[
'renameuser'] = $sp->getLinkRenderer()->makeKnownLink(
47 SpecialPage::getTitleFor(
'Renameuser' ),
48 $sp->msg(
'renameuser-linkoncontribs', $nt->getText() )->text(),
49 [
'title' => $sp->msg(
'renameuser-linkoncontribs-text', $nt->getText() )->parse() ],
50 [
'oldusername' => $nt->getText() ]
60 $types[] =
'renameuser';
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Class for viewing MediaWiki article and history.
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 onContributionsToolLinks( $id, Title $nt, array &$tools, SpecialPage $sp)
Shows link to Special:Renameuser on Special:Contributions/foo.
static onShowMissingArticle(Article $article)
Show a log if the user has been renamed and point to the new username.
Parent class for all special pages.
Represents a title within MediaWiki.
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 When $user is not it can be in the form of< username >< more info > e g for bot passwords intended to be added to log contexts Fields it might only if the login was with a bot password 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
return true to allow those checks to and false if checking is done remove or add to the links of a group of changes in EnhancedChangesList Hook subscribers can return false to omit this line from recentchanges use this to change the tables headers change it to an object instance and return false override the list derivative used the name of the old file & $article
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))