Fix for r102649
authorJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 15 Nov 2011 02:42:07 +0000 (02:42 +0000)
committerJohn Du Hart <johnduhart@users.mediawiki.org>
Tue, 15 Nov 2011 02:42:07 +0000 (02:42 +0000)
includes/specials/SpecialComparePages.php

index 1efb5bf..02863e5 100644 (file)
@@ -106,12 +106,12 @@ class SpecialComparePages extends SpecialPage {
                $form->trySubmit();
        }
 
-       public static function showDiff( $data ){
+       public static function showDiff( $data, HTMLForm $form ){
                $rev1 = self::revOrTitle( $data['Revision1'], $data['Page1'] );
                $rev2 = self::revOrTitle( $data['Revision2'], $data['Page2'] );
 
                if( $rev1 && $rev2 ) {
-                       $de = new DifferenceEngine( $this->getContext(),
+                       $de = new DifferenceEngine( $form->getContext(),
                                $rev1,
                                $rev2,
                                null, // rcid