Cicalese has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324756

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

Protected reference to Semantic MediaWiki

Change-Id: I73e21cc37609e659d4804803e0a53ae367720163
---
M includes/Comment.php
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CommentStreams 
refs/changes/56/324756/1

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: newchange
Gerrit-Change-Id: I73e21cc37609e659d4804803e0a53ae367720163
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CommentStreams
Gerrit-Branch: master
Gerrit-Owner: Cicalese <cical...@mitre.org>

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

Reply via email to