Fix article count update on page creation
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 27 Nov 2003 02:04:02 +0000 (02:04 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 27 Nov 2003 02:04:02 +0000 (02:04 +0000)
includes/Article.php
includes/EditPage.php

index 282886a..0b2b04a 100644 (file)
@@ -339,6 +339,8 @@ class Article {
                
                $fname = "Article::insertNewArticle";
 
+               $this->mCountAdjustment = $this->isCountable( $text );
+
                $ns = $this->mTitle->getNamespace();
                $ttl = $this->mTitle->getDBkey();
                $text = $this->preSaveTransform( $text );
index 43aafdf..48a2691 100644 (file)
@@ -127,7 +127,6 @@ class EditPage {
                                          $this->mTitle->getPrefixedURL() ) );
                                        return;
                                }
-                               $this->mCountAdjustment = $this->mArticle->isCountable( $wpTextbox1 );
                                $this->mArticle->insertNewArticle( $wpTextbox1, $wpSummary, $wpMinoredit, $wpWatchthis );
                                return;
                        }