From 22216ed802a899fbc50074dce3b6dcb725fc2cf7 Mon Sep 17 00:00:00 2001 From: Erik Moeller Date: Thu, 24 Mar 2005 13:22:25 +0000 Subject: [PATCH] suppressRC parameter for insertNewArticle() --- includes/Article.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/includes/Article.php b/includes/Article.php index c7b43f39b0..fe31b6c60e 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -875,7 +875,7 @@ class Article { * errors at some point. * @private */ - function insertNewArticle( $text, $summary, $isminor, $watchthis ) { + function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false ) { global $wgOut, $wgUser; global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer; @@ -908,7 +908,9 @@ class Article { $this->updateRevisionOn( $dbw, $revision, 0 ); Article::onArticleCreate( $this->mTitle ); - RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary ); + if(!$suppressRC) { + RecentChange::notifyNew( $now, $this->mTitle, $isminor, $wgUser, $summary ); + } if ($watchthis) { if(!$this->mTitle->userIsWatching()) $this->watch(); -- 2.20.1