Use getId() accessors for Revision object (fixes fatal)
authorAaron Schulz <aaron@users.mediawiki.org>
Sun, 23 Oct 2011 09:38:52 +0000 (09:38 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Sun, 23 Oct 2011 09:38:52 +0000 (09:38 +0000)
includes/EditPage.php

index 1c44c3b..f84e0a5 100644 (file)
@@ -237,7 +237,7 @@ class EditPage {
                                                        wfMsgNoTrans( 'undo-success' ) . '</div>', true, /* interface */true );
                                                $firstrev = $oldrev->getNext();
                                                # If we just undid one rev, use an autosummary
-                                               if ( $firstrev->mId == $undo ) {
+                                               if ( $firstrev->getId() == $undo ) {
                                                        $undoSummary = wfMsgForContent( 'undo-summary', $undo, $undorev->getUserText() );
                                                        if ( $this->summary === '' ) {
                                                                $this->summary = $undoSummary;