Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions OAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,18 +48,18 @@ public static function onSkinTemplateNavigation_Universal( SkinTemplate $skinTem
'icon' => 'oauth',
);
if( $inExt ) {
$links['user-menu']['anon_oauth_login']['href'] = Skin::makeSpecialUrlSubpage( 'OAuth2Client', 'redirect' );
$links['user-menu']['anon_oauth_login']['href'] = SpecialPage::getTitleFor( 'OAuth2Client', 'redirect' )->getFullURL();
} else {
# Due to bug 32276, if a user does not have read permissions,
# $this->getTitle() will just give Special:Badtitle, which is
# not especially useful as a returnto parameter. Use the title
# from the request instead, if there was one.
# see SkinTemplate->buildPersonalUrls()
$links['user-menu']['anon_oauth_login']['href'] = Skin::makeSpecialUrlSubpage(
$links['user-menu']['anon_oauth_login']['href'] = SpecialPage::getTitleFor(
'OAuth2Client',
'redirect',
wfArrayToCGI( array( 'returnto' => $page ) )
);
)->getFullURL();
}

if( isset( $personal_urls['anonlogin'] ) ) {
Expand Down