From: Brion Vibber Date: Tue, 14 Jun 2005 19:24:03 +0000 (+0000) Subject: * (bug 2408) page_is_new was inverted (whoops!) X-Git-Tag: 1.5.0beta1~188 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=f100e9ba484bcfbe281b00d9b8b2abad93862e5e;p=lhc%2Fweb%2Fwiklou.git * (bug 2408) page_is_new was inverted (whoops!) --- 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 ), ),