From 2992f3aa5f2c865fc94d26231e55fcec921eb19f Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Sun, 23 Oct 2011 09:38:52 +0000 Subject: [PATCH] Use getId() accessors for Revision object (fixes fatal) --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 1c44c3be41..f84e0a520f 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -237,7 +237,7 @@ class EditPage { wfMsgNoTrans( 'undo-success' ) . '', 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; -- 2.20.1