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