@@ 3199-3206 (lines=8) @@ | ||
3196 | $from = str_replace( '_', ' ', $fromP ); |
|
3197 | // User name given should match up with the top revision. |
|
3198 | // If the user was deleted then $from should be empty. |
|
3199 | if ( $from != $current->getUserText() ) { |
|
3200 | $resultDetails = [ 'current' => $current ]; |
|
3201 | return [ [ 'alreadyrolled', |
|
3202 | htmlspecialchars( $this->mTitle->getPrefixedText() ), |
|
3203 | htmlspecialchars( $fromP ), |
|
3204 | htmlspecialchars( $current->getUserText() ) |
|
3205 | ] ]; |
|
3206 | } |
|
3207 | ||
3208 | // Get the last edit not by this person... |
|
3209 | // Note: these may not be public values |
|
@@ 3315-3322 (lines=8) @@ | ||
3312 | $statusRev = isset( $status->value['revision'] ) |
|
3313 | ? $status->value['revision'] |
|
3314 | : null; |
|
3315 | if ( !( $statusRev instanceof Revision ) ) { |
|
3316 | $resultDetails = [ 'current' => $current ]; |
|
3317 | return [ [ 'alreadyrolled', |
|
3318 | htmlspecialchars( $this->mTitle->getPrefixedText() ), |
|
3319 | htmlspecialchars( $fromP ), |
|
3320 | htmlspecialchars( $current->getUserText() ) |
|
3321 | ] ]; |
|
3322 | } |
|
3323 | ||
3324 | if ( $changingContentModel ) { |
|
3325 | // If the content model changed during the rollback, |