Merge "Add some tests for DerivedPageDataUpdater::isCountable."
[lhc/web/wiklou.git] / includes / specials / SpecialConfirmemail.php
index b51f92f..99e6dde 100644 (file)
@@ -148,7 +148,7 @@ class EmailConfirmation extends UnlistedSpecialPage {
         * @param string $code Confirmation code
         */
        private function attemptConfirm( $code ) {
-               $user = User::newFromConfirmationCode( $code, User::READ_LATEST );
+               $user = User::newFromConfirmationCode( $code, User::READ_EXCLUSIVE );
                if ( !is_object( $user ) ) {
                        $this->getOutput()->addWikiMsg( 'confirmemail_invalid' );