From: Aaron Schulz Date: Sun, 4 Feb 2007 05:19:58 +0000 (+0000) Subject: revert; first commit should not be to trunk, even if its a small patch. X-Git-Tag: 1.31.0-rc.0~54135 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=0d2413680565904739cab648e7e4d058e6f9e2ce;p=lhc%2Fweb%2Fwiklou.git revert; first commit should not be to trunk, even if its a small patch. --- 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 = "