From: Domas Mituzas Date: Sun, 21 Aug 2005 13:53:49 +0000 (+0000) Subject: add Referrer for stub X-Git-Tag: 1.6.0~1844 X-Git-Url: http://git.cyclocoop.org/geomaker.php?a=commitdiff_plain;h=699e8285df6fae3755e241c36b12778f5b02ded7;p=lhc%2Fweb%2Fwiklou.git add Referrer for stub --- 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;