From 699e8285df6fae3755e241c36b12778f5b02ded7 Mon Sep 17 00:00:00 2001 From: Domas Mituzas Date: Sun, 21 Aug 2005 13:53:49 +0000 Subject: [PATCH] add Referrer for stub --- includes/HistoryBlob.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/includes/HistoryBlob.php b/includes/HistoryBlob.php index b407a836fe..587588552d 100644 --- a/includes/HistoryBlob.php +++ b/includes/HistoryBlob.php @@ -182,7 +182,7 @@ $wgBlobCache = array(); * @package MediaWiki */ class HistoryBlobStub { - var $mOldId, $mHash; + var $mOldId, $mHash, $mRef; /** @todo document */ function HistoryBlobStub( $hash = '', $oldid = 0 ) { @@ -197,6 +197,20 @@ class HistoryBlobStub { $this->mOldId = $id; } + /** + * Sets the location (old_id) of the referring object + */ + function setReferrer( $id ) { + $this->mRef = $id; + } + + /** + * Gets the location of the referring object + */ + function getReferrer() { + return $this->mRef; + } + /** @todo document */ function getText() { global $wgBlobCache; -- 2.20.1