* @package MediaWiki
*/
class HistoryBlobStub {
- var $mOldId, $mHash;
+ var $mOldId, $mHash, $mRef;
/** @todo document */
function HistoryBlobStub( $hash = '', $oldid = 0 ) {
$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;
}
$flags = explode( ',', $row->old_flags );
if( in_array( 'external', $flags ) ) {
- $url=$row->old_text;
- @list($proto,$path)=explode('://',$url,2);
- if ($path=="") {
- wfProfileOut( $fname );
- return false;
- }
- require_once('ExternalStore.php');
- $row->old_text=ExternalStore::fetchFromUrl($url);
+ $url=$row->old_text;
+ @list($proto,$path)=explode('://',$url,2);
+ if ($path=="") {
+ wfProfileOut( $fname );
+ return false;
+ }
+ require_once('ExternalStore.php');
+ $row->old_text=ExternalStore::fetchFromUrl($url);
}
if( !in_array( 'object', $flags ) ) {