I added the code from the "Enhancements" section to my LocalSettings.php:
$wgHooks['PersonalUrls'][] = 'onPersonalUrls';
function onPersonalUrls( array &$personal_urls, Title $title, SkinTemplate $skin ) {
// Add a link to Special:RequestAccount if a link exists for login
if ( isset( $personal_urls['login'] ) || isset( $personal_urls['anonlogin'] ) ) {
$personal_urls['createaccount'] = array(
'text' => wfMessage( 'requestaccount' )->text(),
'href' => SpecialPage::getTitleFor( 'RequestAccount' )->getFullURL()
);
}
return true;
}
But I still do not see a link for "Request Account" in the upper right of my pages when the user is not logged in. I also made sure that the text "Request account" was added to MediaWiki:Requestaccount. I resaved the page to be sure.
I also have $wgGroupPermissions set to false for * createaccount
Is there something I am missing here? I am trying to make a private wiki where users can request accounts.