Cleanup of Wikidata branch.
[lhc/web/wiklou.git] / includes / WikiPage.php
index 511f83a..770c37a 100644 (file)
@@ -1356,20 +1356,20 @@ class WikiPage extends Page implements IDBAccessObject {
                return $ret;
        }
 
-    /**
-     * Get the content that needs to be saved in order to undo all revisions
-     * between $undo and $undoafter. Revisions must belong to the same page,
-     * must exist and must not be deleted
-     * @param $undo Revision
-     * @param $undoafter Revision Must be an earlier revision than $undo
-     * @return mixed string on success, false on failure
-     * @since 1.21
-     * Before we had the Content object, this was done in getUndoText
-     */
-    public function getUndoContent( Revision $undo, Revision $undoafter = null ) {
-        $handler = $undo->getContentHandler();
-        return $handler->getUndoContent( $this->getRevision(), $undo, $undoafter );
-    }
+       /**
+        * Get the content that needs to be saved in order to undo all revisions
+        * between $undo and $undoafter. Revisions must belong to the same page,
+        * must exist and must not be deleted
+        * @param $undo Revision
+        * @param $undoafter Revision Must be an earlier revision than $undo
+        * @return mixed string on success, false on failure
+        * @since 1.21
+        * Before we had the Content object, this was done in getUndoText
+        */
+       public function getUndoContent( Revision $undo, Revision $undoafter = null ) {
+               $handler = $undo->getContentHandler();
+               return $handler->getUndoContent( $this->getRevision(), $undo, $undoafter );
+       }
 
        /**
         * Get the text that needs to be saved in order to undo all revisions