From: Alexandre Emsenhuber Date: Sat, 31 Dec 2011 11:54:06 +0000 (+0000) Subject: Per Nikerabbit, fix for r107653: don't show the "missing revision" warning on non... X-Git-Tag: 1.31.0-rc.0~25657 X-Git-Url: https://git.cyclocoop.org//%22?a=commitdiff_plain;h=a35d0c6d18880867f7837870b05f78ca7c1c97e5;p=lhc%2Fweb%2Fwiklou.git Per Nikerabbit, fix for r107653: don't show the "missing revision" warning on non-existing page (obviously) --- 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",