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