// Make sure it's possible to log out
if ( !$session->canSetUser() ) {
- $this->dieUsage(
- 'Cannot log out when using ' .
- $session->getProvider()->describe( Language::factory( 'en' ) ),
+ $this->dieWithError(
+ [
+ 'cannotlogoutnow-text',
+ $session->getProvider()->describe( $this->getErrorFormatter()->getLanguage() )
+ ],
'cannotlogout'
);
}
}
public function getHelpUrls() {
- return 'https://www.mediawiki.org/wiki/API:Logout';
+ return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Logout';
}
}