Legoktm has uploaded a new change for review.

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

Change subject: Use load_composer_autoloader
......................................................................

Use load_composer_autoloader

Change-Id: If7fff2476382853426fa61b5c878f0c6f6b9d0a8
Depends-On: Ib031bef17c8a7d708a5c7878e74967d19217bbc8
---
M SyntaxHighlight_GeSHi.class.php
M extension.json
2 files changed, 4 insertions(+), 4 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/SyntaxHighlight_GeSHi 
refs/changes/97/263197/1

diff --git a/SyntaxHighlight_GeSHi.class.php b/SyntaxHighlight_GeSHi.class.php
index 1f6cb9f..ee7b7a6 100644
--- a/SyntaxHighlight_GeSHi.class.php
+++ b/SyntaxHighlight_GeSHi.class.php
@@ -48,10 +48,6 @@
                if ( $wgPygmentizePath === false ) {
                        $wgPygmentizePath = __DIR__ . '/pygments/pygmentize';
                }
-
-               if ( file_exists( __DIR__ . '/vendor/autoload.php' ) ) {
-                       require_once __DIR__ . '/vendor/autoload.php';
-               }
        }
 
        /**
diff --git a/extension.json b/extension.json
index 670ae1e..5611851 100644
--- a/extension.json
+++ b/extension.json
@@ -13,6 +13,9 @@
        "descriptionmsg": "syntaxhighlight-desc",
        "license-name": "GPL-2.0+",
        "type": "parserhook",
+       "require": {
+               "MediaWiki": ">= 1.27"
+       },
        "MessagesDirs": {
                "SyntaxHighlight_GeSHi": [
                        "i18n"
@@ -101,5 +104,6 @@
        "ParserTestFiles": [
                "tests/parserTests.txt"
        ],
+       "load_composer_autoloader": true,
        "manifest_version": 1
 }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: If7fff2476382853426fa61b5c878f0c6f6b9d0a8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/SyntaxHighlight_GeSHi
Gerrit-Branch: master
Gerrit-Owner: Legoktm <[email protected]>

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

Reply via email to