From 0d2413680565904739cab648e7e4d058e6f9e2ce Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 4 Feb 2007 05:19:58 +0000 Subject: [PATCH] revert; first commit should not be to trunk, even if its a small patch. --- includes/DifferenceEngine.php | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 89caa1e780..d218917c33 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -201,10 +201,6 @@ CONTROL; wfProfileIn( $fname ); $wgOut->addHTML( "

{$this->mPagetitle}

\n" ); - #add deleted rev tag if needed - if ( !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { - $wgOut->addWikiText( wfMsg( 'rev-deleted-text-permission' ) ); - } if( !$this->mNewRev->isCurrent() ) { $oldEditSectionSetting = $wgOut->parserOptions()->setEditSection( false ); @@ -332,12 +328,9 @@ CONTROL; } } - #loadtext is permission safe, this just clears out the diff if ( !$this->loadText() ) { wfProfileOut( $fname ); return false; - } else if ( !$this->mOldRev->userCan(Revision::DELETED_TEXT) || !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { - return ''; } $difftext = $this->generateDiffBody( $this->mOldtext, $this->mNewtext ); @@ -476,13 +469,6 @@ CONTROL; * Add the header to a diff body */ function addHeader( $diff, $otitle, $ntitle, $multi = '' ) { - global $wgOut; - - if ( !$this->mOldRev->userCan(Revision::DELETED_TEXT) ) { - $otitle = ''.$otitle.''; - } else if ( !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { - $ntitle = ''.$ntitle.''; - } $header = " -- 2.20.1