From: Aaron Schulz Date: Sun, 23 Oct 2011 09:38:52 +0000 (+0000) Subject: Use getId() accessors for Revision object (fixes fatal) X-Git-Tag: 1.31.0-rc.0~26952 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=2992f3aa5f2c865fc94d26231e55fcec921eb19f;p=lhc%2Fweb%2Fwiklou.git Use getId() accessors for Revision object (fixes fatal) --- 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;