r2081 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r2080‎ | r2081 | r2082 >
Date:02:04, 27 November 2003
Author:vibber
Status:old
Tags:
Comment:
Fix article count update on page creation
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)
  • /trunk/phase3/includes/EditPage.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -339,6 +339,8 @@
340340
341341 $fname = "Article::insertNewArticle";
342342
 343+ $this->mCountAdjustment = $this->isCountable( $text );
 344+
343345 $ns = $this->mTitle->getNamespace();
344346 $ttl = $this->mTitle->getDBkey();
345347 $text = $this->preSaveTransform( $text );
Index: trunk/phase3/includes/EditPage.php
@@ -127,7 +127,6 @@
128128 $this->mTitle->getPrefixedURL() ) );
129129 return;
130130 }
131 - $this->mCountAdjustment = $this->mArticle->isCountable( $wpTextbox1 );
132131 $this->mArticle->insertNewArticle( $wpTextbox1, $wpSummary, $wpMinoredit, $wpWatchthis );
133132 return;
134133 }

Status & tagging log