X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHistoryBlob.php;h=494cbfaf8fb5dc706ff22c3187c7574efb592904;hb=09cc5e1e42ad827eef8f8db7b16fbaa7ca238a9f;hp=d2be9e93b03cd63dd56e6c7fd9922fda25714396;hpb=a15fe7dd93cfcd9510b54b8481b4c3aa891ac380;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index d2be9e93b0..494cbfaf8f 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -351,10 +351,10 @@ class HistoryBlobCurStub { */ class DiffHistoryBlob implements HistoryBlob { /** @var array Uncompressed item cache */ - protected $mItems = array(); + public $mItems = array(); /** @var int Total uncompressed size */ - protected $mSize = 0; + public $mSize = 0; /** * @var array Array of diffs. If a diff D from A to B is notated D = B - A, @@ -364,20 +364,20 @@ class DiffHistoryBlob implements HistoryBlob { * diff[i] = { * { item[map[i]] - Z where i = 0 */ - protected $mDiffs; + public $mDiffs; /** @var array The diff map, see above */ - protected $mDiffMap; + public $mDiffMap; /** @var int The key for getText() */ - protected $mDefaultKey; + public $mDefaultKey; /** @var string Compressed storage */ public $mCompressed; /** @var bool True if the object is locked against further writes */ - protected $mFrozen = false; + public $mFrozen = false; /** * @var int The maximum uncompressed size before the object becomes sad @@ -522,9 +522,9 @@ class DiffHistoryBlob implements HistoryBlob { function diff( $t1, $t2 ) { # Need to do a null concatenation with warnings off, due to bugs in the current version of xdiff # "String is not zero-terminated" - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $diff = xdiff_string_rabdiff( $t1, $t2 ) . ''; - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); return $diff; } @@ -535,9 +535,9 @@ class DiffHistoryBlob implements HistoryBlob { */ function patch( $base, $diff ) { if ( function_exists( 'xdiff_string_bpatch' ) ) { - wfSuppressWarnings(); + MediaWiki\suppressWarnings(); $text = xdiff_string_bpatch( $base, $diff ) . ''; - wfRestoreWarnings(); + MediaWiki\restoreWarnings(); return $text; }