suppressRC parameter for insertNewArticle()
authorErik Moeller <erik@users.mediawiki.org>
Thu, 24 Mar 2005 13:22:25 +0000 (13:22 +0000)
committerErik Moeller <erik@users.mediawiki.org>
Thu, 24 Mar 2005 13:22:25 +0000 (13:22 +0000)
includes/Article.php

index c7b43f3..fe31b6c 100644 (file)
@@ -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();