|
@@ 806-809 (lines=4) @@
|
| 803 |
|
* @return bool|string |
| 804 |
|
*/ |
| 805 |
|
public function generateContentDiffBody( Content $old, Content $new ) { |
| 806 |
|
if ( !( $old instanceof TextContent ) ) { |
| 807 |
|
throw new MWException( "Diff not implemented for " . get_class( $old ) . "; " . |
| 808 |
|
"override generateContentDiffBody to fix this." ); |
| 809 |
|
} |
| 810 |
|
|
| 811 |
|
if ( !( $new instanceof TextContent ) ) { |
| 812 |
|
throw new MWException( "Diff not implemented for " . get_class( $new ) . "; " |
|
@@ 811-814 (lines=4) @@
|
| 808 |
|
"override generateContentDiffBody to fix this." ); |
| 809 |
|
} |
| 810 |
|
|
| 811 |
|
if ( !( $new instanceof TextContent ) ) { |
| 812 |
|
throw new MWException( "Diff not implemented for " . get_class( $new ) . "; " |
| 813 |
|
. "override generateContentDiffBody to fix this." ); |
| 814 |
|
} |
| 815 |
|
|
| 816 |
|
$otext = $old->serialize(); |
| 817 |
|
$ntext = $new->serialize(); |