From f100e9ba484bcfbe281b00d9b8b2abad93862e5e Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Tue, 14 Jun 2005 19:24:03 +0000 Subject: [PATCH] * (bug 2408) page_is_new was inverted (whoops!) --- RELEASE-NOTES | 2 ++ includes/Article.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 60887f4593..25b064523d 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -287,6 +287,8 @@ Various bugfixes, small features, and a few experimental things: * (bug 2172) Fix problem with nowiki beeing replaced by marker strings when a template with a gallery was used. * Guard Special:Userrights against form submission forgery +* (bug 2408) page_is_new was inverted (whoops!) + === Caveats === diff --git a/includes/Article.php b/includes/Article.php index d4f438405e..8837e25eb2 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -848,7 +848,7 @@ class Article { array( /* SET */ 'page_latest' => $revision->getId(), 'page_touched' => $dbw->timestamp(), - 'page_is_new' => ($lastRevision === 0) ? 0 : 1, + 'page_is_new' => ($lastRevision === 0) ? 1 : 0, 'page_is_redirect' => Article::isRedirect( $text ), 'page_len' => strlen( $text ), ), -- 2.20.1