Index: trunk/phase3/includes/Article.php |
— | — | @@ -875,7 +875,7 @@ |
876 | 876 | * errors at some point. |
877 | 877 | * @private |
878 | 878 | */ |
879 | | - function insertNewArticle( $text, $summary, $isminor, $watchthis ) { |
| 879 | + function insertNewArticle( $text, $summary, $isminor, $watchthis, $suppressRC=false ) { |
880 | 880 | global $wgOut, $wgUser; |
881 | 881 | global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer; |
882 | 882 | |
— | — | @@ -908,7 +908,9 @@ |
909 | 909 | $this->updateRevisionOn( $dbw, $revision, 0 ); |
910 | 910 | |
911 | 911 | 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 | + } |
913 | 915 | |
914 | 916 | if ($watchthis) { |
915 | 917 | if(!$this->mTitle->userIsWatching()) $this->watch(); |