|
@@ 838-841 (lines=4) @@
|
| 835 |
|
* @return bool|string |
| 836 |
|
*/ |
| 837 |
|
public function generateContentDiffBody( Content $old, Content $new ) { |
| 838 |
|
if ( !( $old instanceof TextContent ) ) { |
| 839 |
|
throw new MWException( "Diff not implemented for " . get_class( $old ) . "; " . |
| 840 |
|
"override generateContentDiffBody to fix this." ); |
| 841 |
|
} |
| 842 |
|
|
| 843 |
|
if ( !( $new instanceof TextContent ) ) { |
| 844 |
|
throw new MWException( "Diff not implemented for " . get_class( $new ) . "; " |
|
@@ 843-846 (lines=4) @@
|
| 840 |
|
"override generateContentDiffBody to fix this." ); |
| 841 |
|
} |
| 842 |
|
|
| 843 |
|
if ( !( $new instanceof TextContent ) ) { |
| 844 |
|
throw new MWException( "Diff not implemented for " . get_class( $new ) . "; " |
| 845 |
|
. "override generateContentDiffBody to fix this." ); |
| 846 |
|
} |
| 847 |
|
|
| 848 |
|
$otext = $old->serialize(); |
| 849 |
|
$ntext = $new->serialize(); |