Index: trunk/phase3/includes/specials/SpecialComparePages.php |
— | — | @@ -106,12 +106,12 @@ |
107 | 107 | $form->trySubmit(); |
108 | 108 | } |
109 | 109 | |
110 | | - public static function showDiff( $data ){ |
| 110 | + public static function showDiff( $data, HTMLForm $form ){ |
111 | 111 | $rev1 = self::revOrTitle( $data['Revision1'], $data['Page1'] ); |
112 | 112 | $rev2 = self::revOrTitle( $data['Revision2'], $data['Page2'] ); |
113 | 113 | |
114 | 114 | if( $rev1 && $rev2 ) { |
115 | | - $de = new DifferenceEngine( $this->getContext(), |
| 115 | + $de = new DifferenceEngine( $form->getContext(), |
116 | 116 | $rev1, |
117 | 117 | $rev2, |
118 | 118 | null, // rcid |