|
@@ 130-136 (lines=7) @@
|
| 127 |
|
} |
| 128 |
|
|
| 129 |
|
$errors = []; |
| 130 |
|
if ( !$this->mTargetObj instanceof Title ) { |
| 131 |
|
$errors[] = $this->msg( 'mergehistory-invalid-source' )->parseAsBlock(); |
| 132 |
|
} elseif ( !$this->mTargetObj->exists() ) { |
| 133 |
|
$errors[] = $this->msg( 'mergehistory-no-source', |
| 134 |
|
wfEscapeWikiText( $this->mTargetObj->getPrefixedText() ) |
| 135 |
|
)->parseAsBlock(); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if ( !$this->mDestObj instanceof Title ) { |
| 139 |
|
$errors[] = $this->msg( 'mergehistory-invalid-destination' )->parseAsBlock(); |
|
@@ 138-144 (lines=7) @@
|
| 135 |
|
)->parseAsBlock(); |
| 136 |
|
} |
| 137 |
|
|
| 138 |
|
if ( !$this->mDestObj instanceof Title ) { |
| 139 |
|
$errors[] = $this->msg( 'mergehistory-invalid-destination' )->parseAsBlock(); |
| 140 |
|
} elseif ( !$this->mDestObj->exists() ) { |
| 141 |
|
$errors[] = $this->msg( 'mergehistory-no-destination', |
| 142 |
|
wfEscapeWikiText( $this->mDestObj->getPrefixedText() ) |
| 143 |
|
)->parseAsBlock(); |
| 144 |
|
} |
| 145 |
|
|
| 146 |
|
if ( $this->mTargetObj && $this->mDestObj && $this->mTargetObj->equals( $this->mDestObj ) ) { |
| 147 |
|
$errors[] = $this->msg( 'mergehistory-same-destination' )->parseAsBlock(); |