(bug 17060) Renders edit comments the same for all users wrt to revdelete

This commit is contained in:
Aaron Schulz 2009-05-19 19:19:41 +00:00
parent 1231f6fae8
commit d43c8027f5
2 changed files with 2 additions and 6 deletions

View file

@ -654,7 +654,6 @@ class LogPager extends ReverseChronologicalPager {
$tables = array( 'logging', 'user' );
$this->mConds[] = 'user_id = log_user';
$groupBy = false;
$index = array();
# Add log_search table if there are conditions on it
if( array_key_exists('ls_field',$this->mConds) ) {
$tables[] = 'log_search';

View file

@ -373,13 +373,10 @@ class PageHistory {
function revLink( $rev ) {
global $wgLang;
$date = $wgLang->timeanddate( wfTimestamp(TS_MW, $rev->getTimestamp()), true );
if( $rev->userCan( Revision::DELETED_TEXT ) ) {
if( !$rev->isDeleted( Revision::DELETED_TEXT ) ) {
$link = $this->mSkin->makeKnownLinkObj( $this->mTitle, $date, "oldid=" . $rev->getId() );
} else {
$link = $date;
}
if( $rev->isDeleted( Revision::DELETED_TEXT ) ) {
$link = "<span class=\"history-deleted\">$link</span>";
$link = "<span class=\"history-deleted\">$date</span>";
}
return $link;
}