From: daniel Date: Mon, 18 Jun 2012 14:57:22 +0000 (+0200) Subject: made DifferenceEngine::getRevisionHeader() protected, so we can override it. X-Git-Tag: 1.31.0-rc.0~22097^2^2~95 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/fiche.php?a=commitdiff_plain;h=4775a690b52674e4d0d56183ad6f263379a16bc5;p=lhc%2Fweb%2Fwiklou.git made DifferenceEngine::getRevisionHeader() protected, so we can override it. Change-Id: Ic429cd0c039c0eb0487e149f9bb79c469b3635b3 --- diff --git a/includes/diff/DifferenceEngine.php b/includes/diff/DifferenceEngine.php index 224764846f..fc95e8d584 100644 --- a/includes/diff/DifferenceEngine.php +++ b/includes/diff/DifferenceEngine.php @@ -213,7 +213,7 @@ class DifferenceEngine extends ContextSource { # If external diffs are enabled both globally and for the user, # we'll use the application/x-external-editor interface to call # an external diff tool like kompare, kdiff3, etc. - if ( ExternalEdit::useExternalEngine( $this->getContext(), 'diff' ) ) { + if ( ExternalEdit::useExternalEngine( $this->getContext(), 'diff' ) ) { #FIXME: how to handle this for non-text content? $urls = array( 'File' => array( 'Extension' => 'wiki', 'URL' => # This should be mOldPage, but it may not be set, see below. @@ -888,7 +888,7 @@ class DifferenceEngine extends ContextSource { * the visibility of the revision and a link to edit the page. * @return String HTML fragment */ - private function getRevisionHeader( Revision $rev, $complete = '' ) { + protected function getRevisionHeader( Revision $rev, $complete = '' ) { $lang = $this->getLanguage(); $user = $this->getUser(); $revtimestamp = $rev->getTimestamp();