From: Guy Van den Broeck Date: Wed, 20 Aug 2008 18:45:43 +0000 (+0000) Subject: added diff headers for HTML diff X-Git-Tag: 1.31.0-rc.0~45765 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a115a6d874f6d118b397b66ce5f873ac98610bf3;p=lhc%2Fweb%2Fwiklou.git added diff headers for HTML diff --- diff --git a/includes/DifferenceEngine.php b/includes/DifferenceEngine.php index 1f88f5cf32..1ddd882ebd 100644 --- a/includes/DifferenceEngine.php +++ b/includes/DifferenceEngine.php @@ -267,6 +267,8 @@ CONTROL; '
' . $nextlink . $patrol . '
'; if( $wgEnableHtmlDiff ) { + $multi = $this->getMultiNotice(); + $wgOut->addHTML( $this->addHeader( '', $oldHeader, $newHeader, $multi ) ); $this->renderHtmlDiff(); } else { @@ -332,6 +334,7 @@ CONTROL; $this->showDiffStyle(); + $wgOut->addHTML( "

HTML diff

\n" ); #add deleted rev tag if needed if( !$this->mNewRev->userCan(Revision::DELETED_TEXT) ) { $wgOut->addWikiMsg( 'rev-deleted-text-permission' ); @@ -672,8 +675,6 @@ CONTROL; * Add the header to a diff body */ static function addHeader( $diff, $otitle, $ntitle, $multi = '' ) { - global $wgOut; - $header = "