dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
00b5394
)
suppressRC parameter for insertNewArticle()
author
Erik Moeller
<erik@users.mediawiki.org>
Thu, 24 Mar 2005 13:22:25 +0000
(13:22 +0000)
committer
Erik Moeller
<erik@users.mediawiki.org>
Thu, 24 Mar 2005 13:22:25 +0000
(13:22 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
c7b43f3
..
fe31b6c
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-875,7
+875,7
@@
class Article {
* errors at some point.
* @private
*/
* 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;
global $wgOut, $wgUser;
global $wgUseSquid, $wgDeferredUpdateList, $wgInternalServer;
@@
-908,7
+908,9
@@
class Article {
$this->updateRevisionOn( $dbw, $revision, 0 );
Article::onArticleCreate( $this->mTitle );
$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();
if ($watchthis) {
if(!$this->mTitle->userIsWatching()) $this->watch();