wpUndidRevision should be passed along during 'preview' and 'diff'
authorbsitu <bsitu@wikimedia.org>
Fri, 23 Aug 2013 22:57:52 +0000 (15:57 -0700)
committerbsitu <bsitu@wikimedia.org>
Fri, 23 Aug 2013 23:00:03 +0000 (16:00 -0700)
bug: 53176
Change-Id: Ie0b71b0cd8a3e94d92f9b275cdc623cfde154de2

includes/EditPage.php

index 7c7bfe9..be1e75e 100644 (file)
@@ -666,6 +666,11 @@ class EditPage {
                        $this->edittime = $request->getVal( 'wpEdittime' );
                        $this->starttime = $request->getVal( 'wpStarttime' );
 
+                       $undidRev = $request->getInt( 'wpUndidRevision' );
+                       if ( $undidRev ) {
+                               $this->undidRev = $undidRev;
+                       }
+
                        $this->scrolltop = $request->getIntOrNull( 'wpScrolltop' );
 
                        if ( $this->textbox1 === '' && $request->getVal( 'wpTextbox1' ) === null ) {