From: Brion Vibber Date: Thu, 27 Nov 2003 02:04:02 +0000 (+0000) Subject: Fix article count update on page creation X-Git-Tag: 1.1.0~75 X-Git-Url: http://git.cyclocoop.org/%22.%28%24lien.?a=commitdiff_plain;h=d66488251279dc004bddc01486c069da730198ed;p=lhc%2Fweb%2Fwiklou.git Fix article count update on page creation --- 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; }