r103124 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r103123‎ | r103124 | r103125 >
Date:02:42, 15 November 2011
Author:johnduhart
Status:ok
Tags:
Comment:
Fix for r102649
Modified paths:
  • /trunk/phase3/includes/specials/SpecialComparePages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialComparePages.php
@@ -106,12 +106,12 @@
107107 $form->trySubmit();
108108 }
109109
110 - public static function showDiff( $data ){
 110+ public static function showDiff( $data, HTMLForm $form ){
111111 $rev1 = self::revOrTitle( $data['Revision1'], $data['Page1'] );
112112 $rev2 = self::revOrTitle( $data['Revision2'], $data['Page2'] );
113113
114114 if( $rev1 && $rev2 ) {
115 - $de = new DifferenceEngine( $this->getContext(),
 115+ $de = new DifferenceEngine( $form->getContext(),
116116 $rev1,
117117 $rev2,
118118 null, // rcid

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r102649Made DifferenceEngine use a context instead of global variables and updaters ...ialex13:06, 10 November 2011

Status & tagging log