r7857 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r7856‎ | r7857 | r7858 >
Date:13:22, 24 March 2005
Author:eloquence
Status:old
Tags:
Comment:
suppressRC parameter for insertNewArticle()
Modified paths:
  • /trunk/phase3/includes/Article.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Article.php
@@ -875,7 +875,7 @@
876876 * errors at some point.
877877 * @private
878878 */
879 - function insertNewArticle( $text, $summary, $isminor, $watchthis ) {
 879+ function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false ) {
880880 global $wgOut, $wgUser;
881881 global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer;
882882
@@ -908,7 +908,9 @@
909909 $this->updateRevisionOn( $dbw, $revision, 0 );
910910
911911 Article::onArticleCreate( $this->mTitle );
912 - RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary );
 912+ if(!$suppressRC) {
 913+ RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary );
 914+ }
913915
914916 if ($watchthis) {
915917 if(!$this->mTitle->userIsWatching()) $this->watch();

Status & tagging log