* (bug 2408) page_is_new was inverted (whoops!)
authorBrion Vibber <brion@users.mediawiki.org>
Tue, 14 Jun 2005 19:24:03 +0000 (19:24 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Tue, 14 Jun 2005 19:24:03 +0000 (19:24 +0000)
RELEASE-NOTES
includes/Article.php

index 60887f4..25b0645 100644 (file)
@@ -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 ===
 
index d4f4384..8837e25 100644 (file)
@@ -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 ),
                        ),