EditPage::getOriginalContent should not use Article::getContent
authordaniel <daniel.kinzler@wikimedia.de>
Mon, 16 Apr 2012 07:08:35 +0000 (09:08 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 16 Apr 2012 07:08:35 +0000 (09:08 +0200)
Change-Id: I7563b569e18e6b1a6068c54f3414baba14416d18

includes/EditPage.php

index 3bdab8f..04bba6a 100644 (file)
@@ -891,9 +891,8 @@ class EditPage {
         * section replaced in its context (using WikiPage::replaceSection())
         * to the original text of the edit.
         *
-        * This difers from Article::getContent() that when a missing revision is
-        * encountered the result will be an empty string and not the
-        * 'missing-article' message.
+        * When a missing revision is
+        * encountered, the result will be an empty Content object.
         *
         * @since 1.19
         * @return string
@@ -910,7 +909,7 @@ class EditPage {
                        return $handler->emptyContent();
                }
 
-               $content = $this->mArticle->getContentObject();
+               $content = $revision->getContent();
                return $content;
        }