From 42e9d810b69a76c6761ad44ad02297889f8d066a Mon Sep 17 00:00:00 2001 From: Tim Starling Date: Mon, 29 Dec 2008 08:43:01 +0000 Subject: [PATCH] Use xdiff_string_rabdiff() instead of xdiff_string_bdiff() --- includes/HistoryBlob.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index dda5078107..664ceb4f06 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -355,7 +355,7 @@ class DiffHistoryBlob implements HistoryBlob { } function compress() { - if ( !function_exists( 'xdiff_string_bdiff' ) ){ + if ( !function_exists( 'xdiff_string_rabdiff' ) ){ throw new MWException( "Need xdiff 1.5+ support to write DiffHistoryBlob\n" ); } if ( isset( $this->mDiffs ) ) { @@ -430,7 +430,7 @@ class DiffHistoryBlob implements HistoryBlob { # Need to do a null concatenation with warnings off, due to bugs in the current version of xdiff # "String is not zero-terminated" wfSuppressWarnings(); - $diff = xdiff_string_bdiff( $t1, $t2 ) . ''; + $diff = xdiff_string_rabdiff( $t1, $t2 ) . ''; wfRestoreWarnings(); return $diff; } -- 2.20.1