From a35d0c6d18880867f7837870b05f78ca7c1c97e5 Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Sat, 31 Dec 2011 11:54:06 +0000 Subject: [PATCH] Per Nikerabbit, fix for r107653: don't show the "missing revision" warning on non-existing page (obviously) --- includes/EditPage.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 83ce4e2efe..cd6c6ca629 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -1862,7 +1862,7 @@ class EditPage { $this->mArticle->setOldSubtitle( $revision->getId() ); $wgOut->addWikiMsg( 'editingold' ); } - } else { + } elseif ( $this->mTitle->exists() ) { // Something went wrong $wgOut->wrapWikiMsg( "
\n$1\n
\n", -- 2.20.1