From: Erik Moeller Date: Thu, 24 Mar 2005 13:22:25 +0000 (+0000) Subject: suppressRC parameter for insertNewArticle() X-Git-Tag: 1.5.0alpha1~533 X-Git-Url: http://git.cyclocoop.org/fichier?a=commitdiff_plain;h=22216ed802a899fbc50074dce3b6dcb725fc2cf7;p=lhc%2Fweb%2Fwiklou.git suppressRC parameter for insertNewArticle() --- 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();