Skip to content

Commit

Permalink
fix: getTitle() not defined
Browse files Browse the repository at this point in the history
see Schine#24

Signed-off-by: Nymphxyz <65056401+Nymphxyz@users.noreply.github.com>
  • Loading branch information
Nymphxyz authored Feb 25, 2024
1 parent 326cb62 commit ba9fe68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SpecialOAuth2Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ private function _default(){
$wgOut->setPagetitle( wfMessage( 'oauth2client-login-header', $service_name)->text() );
if ( !$wgUser->isLoggedIn() ) {
$wgOut->addWikiMsg( 'oauth2client-you-can-login-to-this-wiki-with-oauth2', $service_name );
$wgOut->addWikiMsg( 'oauth2client-login-with-oauth2', $this->getTitle( 'redirect' )->getPrefixedURL(), $service_name );
$wgOut->addWikiMsg( 'oauth2client-login-with-oauth2', $this->getPageTitle( 'redirect' )->getPrefixedURL(), $service_name );

} else {
$wgOut->addWikiMsg( 'oauth2client-youre-already-loggedin' );
Expand Down

0 comments on commit ba9fe68

Please sign in to comment.