X-Git-Url: https://git.cyclocoop.org/%28%28?a=blobdiff_plain;f=includes%2Fsession%2FSessionManager.php;h=a364045aaeba76425bc5221f013a1210993e83b4;hb=47e2941bcda6b30ca2fca2c34e4f7dfba9d06647;hp=da7bc57334196b5d515dc57f01f8c647d3efcc5f;hpb=a00cef7d9f71fa2f53e683b7630d9ce90915d6be;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/session/SessionManager.php b/includes/session/SessionManager.php index da7bc57334..a364045aae 100644 --- a/includes/session/SessionManager.php +++ b/includes/session/SessionManager.php @@ -23,6 +23,7 @@ namespace MediaWiki\Session; +use MWException; use Psr\Log\LoggerInterface; use BagOStuff; use CachedBagOStuff; @@ -498,10 +499,12 @@ final class SessionManager implements SessionManagerInterface { 'username' => $userName, ] ); } else { - $logger->error( __METHOD__ . ': failed with message ' . $status->getWikiText(), + $logger->error( + __METHOD__ . ': failed with message ' . $status->getWikiText( false, false, 'en' ), [ 'username' => $userName, - ] ); + ] + ); } $user->setId( $id ); $user->loadFromId( User::READ_LATEST ); @@ -552,7 +555,7 @@ final class SessionManager implements SessionManagerInterface { * The intention is that the named account will never again be usable for * normal login (i.e. there is no way to undo the prevention of access). * - * @private For use from \\User::newSystemUser only + * @private For use from \User::newSystemUser only * @param string $username */ public function preventSessionsForUser( $username ) { @@ -623,7 +626,7 @@ final class SessionManager implements SessionManagerInterface { } // @codeCoverageIgnoreEnd foreach ( $this->allSessionBackends as $backend ) { - $backend->save( true ); + $backend->shutdown(); } } } @@ -1026,7 +1029,7 @@ final class SessionManager implements SessionManagerInterface { /** * Deregister a SessionBackend - * @private For use from \\MediaWiki\\Session\\SessionBackend only + * @private For use from \MediaWiki\Session\SessionBackend only * @param SessionBackend $backend */ public function deregisterSessionBackend( SessionBackend $backend ) { @@ -1044,7 +1047,7 @@ final class SessionManager implements SessionManagerInterface { /** * Change a SessionBackend's ID - * @private For use from \\MediaWiki\\Session\\SessionBackend only + * @private For use from \MediaWiki\Session\SessionBackend only * @param SessionBackend $backend */ public function changeBackendId( SessionBackend $backend ) {