|
@@ 2678-2691 (lines=14) @@
|
| 2675 |
|
|
| 2676 |
|
$wgOut->addModules( 'mediawiki.action.edit.collapsibleFooter' ); |
| 2677 |
|
|
| 2678 |
|
if ( $this->isConflict ) { |
| 2679 |
|
try { |
| 2680 |
|
$this->showConflict(); |
| 2681 |
|
} catch ( MWContentSerializationException $ex ) { |
| 2682 |
|
// this can't really happen, but be nice if it does. |
| 2683 |
|
$msg = wfMessage( |
| 2684 |
|
'content-failed-to-parse', |
| 2685 |
|
$this->contentModel, |
| 2686 |
|
$this->contentFormat, |
| 2687 |
|
$ex->getMessage() |
| 2688 |
|
); |
| 2689 |
|
$wgOut->addWikiText( '<div class="error">' . $msg->text() . '</div>' ); |
| 2690 |
|
} |
| 2691 |
|
} |
| 2692 |
|
|
| 2693 |
|
// Marker for detecting truncated form data. This must be the last |
| 2694 |
|
// parameter sent in order to be of use, so do not move me. |
|
@@ 3203-3215 (lines=13) @@
|
| 3200 |
|
|
| 3201 |
|
$wgOut->addHTML( '</div>' ); |
| 3202 |
|
|
| 3203 |
|
if ( $this->formtype == 'diff' ) { |
| 3204 |
|
try { |
| 3205 |
|
$this->showDiff(); |
| 3206 |
|
} catch ( MWContentSerializationException $ex ) { |
| 3207 |
|
$msg = wfMessage( |
| 3208 |
|
'content-failed-to-parse', |
| 3209 |
|
$this->contentModel, |
| 3210 |
|
$this->contentFormat, |
| 3211 |
|
$ex->getMessage() |
| 3212 |
|
); |
| 3213 |
|
$wgOut->addWikiText( '<div class="error">' . $msg->text() . '</div>' ); |
| 3214 |
|
} |
| 3215 |
|
} |
| 3216 |
|
} |
| 3217 |
|
|
| 3218 |
|
/** |