summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Evans <grknight@gentoo.org>2018-12-20 11:19:38 -0500
committerBrian Evans <grknight@gentoo.org>2018-12-20 11:19:38 -0500
commit6fa050e9c471eb643ed100df7d1bfccd40ff00a6 (patch)
tree0c8cd61c2b48f30d7f669c964eb7aa6f823bbf58 /CommentStreams
parentCommentStreams: Update to 4.5 (diff)
downloadextensions-6fa050e9c471eb643ed100df7d1bfccd40ff00a6.tar.gz
extensions-6fa050e9c471eb643ed100df7d1bfccd40ff00a6.tar.bz2
extensions-6fa050e9c471eb643ed100df7d1bfccd40ff00a6.zip
CommitStreams: Log to RecentChanges
Signed-off-by: Brian Evans <grknight@gentoo.org>
Diffstat (limited to 'CommentStreams')
-rw-r--r--CommentStreams/includes/ApiCSBase.php1
-rw-r--r--CommentStreams/includes/ApiCSPostComment.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/CommentStreams/includes/ApiCSBase.php b/CommentStreams/includes/ApiCSBase.php
index e524e97c..ac0a9991 100644
--- a/CommentStreams/includes/ApiCSBase.php
+++ b/CommentStreams/includes/ApiCSBase.php
@@ -112,6 +112,7 @@ abstract class ApiCSBase extends ApiBase {
$logEntry->setTarget( $this->comment->getWikiPage()->getTitle() );
}
$logid = $logEntry->insert();
+ $logEntry->publish($logid);
}
/**
diff --git a/CommentStreams/includes/ApiCSPostComment.php b/CommentStreams/includes/ApiCSPostComment.php
index 83b35f91..925151f9 100644
--- a/CommentStreams/includes/ApiCSPostComment.php
+++ b/CommentStreams/includes/ApiCSPostComment.php
@@ -215,6 +215,7 @@ class ApiCSPostComment extends ApiBase {
$logEntry->setPerformer( $this->getUser() );
$logEntry->setTarget( $title );
$logid = $logEntry->insert();
+ $logEntry->publish($logid);
}
/**