* (bug 619) Don't use incompatible diff3 executable on non-Linux systems.
* (bug 2631) Fix Hebrew namespaces.
* (bug 2630) Indicate no-longer-valid cached entries in BrokenRedirects list
+* (bug 2644) "cur" diff links in page history should specify current ID
+ explicitly.
=== Caveats ===
return $this->mSkin->makeKnownLinkObj(
$this->mTitle,
$cur,
- 'diff=0&oldid=' . $row->rev_id );
+ 'diff=' . $this->getLatestID($this->mTitle->getArticleID())
+ . '&oldid=' . $row->rev_id );
}
}
function getLatestOffset($id) {
return $this->getExtremeOffset( $id, 'max' );
}
-
+
function getEarliestOffset($id) {
return $this->getExtremeOffset( $id, 'min' );
}
'PageHistory::getExtremeOffset' );
}
+ function getLatestID( $id ) {
+ $db =& wfGetDB(DB_SLAVE);
+ return $db->selectField( 'revision',
+ "max(rev_id)",
+ array( 'rev_page' => $id ),
+ 'PageHistory::getLatestID' );
+ }
+
function getLastOffsetForPaging( $id, $step = 50 ) {
$db =& wfGetDB(DB_SLAVE);
$revision = $db->tableName( 'revision' );
$result = array();
while (($obj = $db->fetchObject($res)) != NULL)
$result[] = $obj;
-wfdebug("limits=$limits offset=$offsets got=".count($result)."\n");
return $result;
}
}
$bits = implode($urls, ' | ');
-
+
wfDebug("latestShown=$latestShown latestTimestamp=$latestTimestamp\n");
if( $latestShown < $latestTimestamp ) {
$prevtext = "<a href=\"$prevurl\">".wfMsgHtml("prevn", $limit)."</a>";