$serial = $decomp;
}
}
- wfdebug("serial: [$serial]\n");
$ret = unserialize( $serial );
return $ret;
}
$this->mArticle->clear(); # Force reload of dates, etc.
$this->mArticle->forUpdate( true ); # Lock the article
-wfdebug("CONFLICT: edittime=".$this->edittime." article timestamp=".$this->mArticle->getTimestamp()."\n");
if( ( $this->section != 'new' ) &&
($this->mArticle->getTimestamp() != $this->edittime ) ) {
$isConflict = true;
* @return string Time in the format specified in $outputtype
*/
function wfTimestamp($outputtype=TS_UNIX,$ts=0) {
-wfdebug("ts: $ts\n");
if ($ts==0) {
$uts=time();
} elseif (preg_match("/^(\d{4})\-(\d\d)\-(\d\d) (\d\d):(\d\d):(\d\d)$/",$ts,$da)) {
$id = $db->selectField( 'page', 'page_id',
array( 'page_namespace' => $ns, 'page_title' => $t ),
$fname, $options );
-wfdebug("link cache: id=$id\n");
if ( !$id ) {
$id = 0;
}
$offset = 0;
# $offset = $dbr->timestamp($offset);
$dboffset = $offset === 0 ? 0 : $dbr->timestamp($offset);
- wfdebug("offset=[$offset] dboffset=[$dboffset]\n");
/*
* "go=last" means to jump to the last history page.
*/
$this->mArticleID = $wgLinkCache->addLinkObj( $this );
}
}
-wfdebug("title: articleid = ".$this->mArticleID."\n");
return $this->mArticleID;
}