jenkins-bot has submitted this change and it was merged.

Change subject: Remove unnecessary require and execution guard that isn't 
needed.
......................................................................


Remove unnecessary require and execution guard that isn't needed.

Change-Id: Ib3a930399fe8281d01770f561a7b85d1b92510f2
---
M specials/Comment/CE_CommentSpecial.php
1 file changed, 4 insertions(+), 11 deletions(-)

Approvals:
  MarkAHershberger: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/specials/Comment/CE_CommentSpecial.php 
b/specials/Comment/CE_CommentSpecial.php
index 247ca0c..f19c5cd 100644
--- a/specials/Comment/CE_CommentSpecial.php
+++ b/specials/Comment/CE_CommentSpecial.php
@@ -21,7 +21,7 @@
 /**
  * @file
  * @ingroup CEComment
- * 
+ *
  * CE_CommentSpecial - comment management.
  *
  * @addtogroup SpecialPage
@@ -31,17 +31,10 @@
 
 //@TODO: license & modify query...
 
-if (!defined('MEDIAWIKI')) die();
-
-global $IP;
-require_once( $IP . "/includes/SpecialPage.php" );
-
 class CECommentSpecial extends SpecialPage {
-
        public function __construct() {
                parent::__construct('SemanticComments');
        }
-
 
        function execute($query) {
                wfProfileIn( __METHOD__ . ' [SemanticComments]' );
@@ -66,13 +59,13 @@
   | searchlabel = <<...further comments>>
   | default=No comments existent in this wiki.
 }}';
-               
+
                $popt = new ParserOptions();
                $popt->setEditSection(false);
-               
+
                $pout = $wgParser->parse($queryText, $this->getPageTitle(), 
$popt);
                $result = $pout->getText();
                $wgOut->addHTML($result);
                wfProfileOut( __METHOD__ . ' [SemanticComments]' );
        }
-}
\ No newline at end of file
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib3a930399fe8281d01770f561a7b85d1b92510f2
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/SemanticComments
Gerrit-Branch: master
Gerrit-Owner: Siebrand <[email protected]>
Gerrit-Reviewer: MarkAHershberger <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to