From 165816d6e7710908ef0f7911a6dae143d68ae5a8 Mon Sep 17 00:00:00 2001 From: daniel Date: Mon, 16 Apr 2012 09:08:35 +0200 Subject: [PATCH] EditPage::getOriginalContent should not use Article::getContent Change-Id: I7563b569e18e6b1a6068c54f3414baba14416d18 --- includes/EditPage.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 3bdab8f37e..04bba6a9ee 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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; } -- 2.20.1