From d66488251279dc004bddc01486c069da730198ed Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 27 Nov 2003 02:04:02 +0000 Subject: [PATCH] Fix article count update on page creation --- includes/Article.php | 2 ++ includes/EditPage.php | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 282886a752..0b2b04a071 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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 ); diff --git a/includes/EditPage.php b/includes/EditPage.php index 43aafdf368..48a2691ed6 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -127,7 +127,6 @@ class EditPage { $this->mTitle->getPrefixedURL() ) ); return; } - $this->mCountAdjustment = $this->mArticle->isCountable( $wpTextbox1 ); $this->mArticle->insertNewArticle( $wpTextbox1, $wpSummary, $wpMinoredit, $wpWatchthis ); return; } -- 2.20.1