From a54eb1a69bc01dd396d19eb905c89160ddc5aa2e Mon Sep 17 00:00:00 2001 From: GeraldST Date: Fri, 12 Sep 2025 23:25:17 +0200 Subject: [PATCH] Update OAuth2Client.php Update for MW 1.43 according to https://github.com/inventaire/MW-OAuth2Client/commit/9e0b0c3f969877b40d0c5692da03233a84fa5a0f#diff-3289a3efc1b21aa7eb7730ead06dfdc3d27f34596124d9b0f8fd26e5f77f4dd4 --- OAuth2Client.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/OAuth2Client.php b/OAuth2Client.php index 3dff564..8287031 100644 --- a/OAuth2Client.php +++ b/OAuth2Client.php @@ -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'] ) ) {