Cicalese has submitted this change and it was merged.

Change subject: Protected reference to Semantic MediaWiki
......................................................................


Protected reference to Semantic MediaWiki

Change-Id: I73e21cc37609e659d4804803e0a53ae367720163
---
M extension.json
M includes/Comment.php
2 files changed, 5 insertions(+), 3 deletions(-)

Approvals:
  Cicalese: Verified; Looks good to me, approved



diff --git a/extension.json b/extension.json
index e251afd..afc5acf 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "CommentStreams",
-       "version": "3.0",
+       "version": "3.1",
        "author": [
                "[http://www.mediawiki.org/wiki/User:Jji Jason Ji]",
                "[http://www.mediawiki.org/wiki/User:Cindy.cicalese Cindy 
Cicalese]"
diff --git a/includes/Comment.php b/includes/Comment.php
index cefbd57..d4ad8d0 100644
--- a/includes/Comment.php
+++ b/includes/Comment.php
@@ -140,8 +140,10 @@
                }
                $comment->loadFromValues( $assoc_page_id, $parent_page_id, 
$comment_title );
 
-               $job = new SMWUpdateJob( $title );
-               JobQueueGroup::singleton()->push( $job );
+               if ( defined( 'SMW_VERSION' ) ) {
+                       $job = new SMWUpdateJob( $title );
+                       JobQueueGroup::singleton()->push( $job );
+               }
 
                return $comment;
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/324756
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: I73e21cc37609e659d4804803e0a53ae367720163
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/CommentStreams
Gerrit-Branch: master
Gerrit-Owner: Cicalese <cical...@mitre.org>
Gerrit-Reviewer: Cicalese <cical...@mitre.org>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to