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

Change subject: InsertLink: using extension.json
......................................................................


InsertLink: using extension.json

Patch Set 2: whitespace, authors, license

Change-Id: Ib26572d7dc4f75b95d68456b9c3d8ce554f0ec2a
---
M InsertLink/InsertLink.class.php
M InsertLink/InsertLink.setup.php
A InsertLink/extension.json
3 files changed, 67 insertions(+), 69 deletions(-)

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



diff --git a/InsertLink/InsertLink.class.php b/InsertLink/InsertLink.class.php
index c6ee1a9..1e45df8 100644
--- a/InsertLink/InsertLink.class.php
+++ b/InsertLink/InsertLink.class.php
@@ -41,29 +41,6 @@
  * @subpackage InsertLink
  */
 class InsertLink extends BsExtensionMW {
-
-       /**
-        * Constructor of InsertLink
-        */
-       public function __construct() {
-               wfProfileIn('BS::' . __METHOD__);
-               // Base settings
-               $this->mExtensionFile = __FILE__;
-               $this->mExtensionType = EXTTYPE::VARIABLE;
-               $this->mInfo = array(
-                       EXTINFO::NAME => 'InsertLink',
-                       EXTINFO::DESCRIPTION => 'bs-insertlink-desc',
-                       EXTINFO::AUTHOR => 'Markus Glaser, Sebastian Ulbricht, 
Patric Wirth',
-                       EXTINFO::VERSION     => 'default',
-                       EXTINFO::STATUS      => 'default',
-                       EXTINFO::PACKAGE     => 'default',
-                       EXTINFO::URL => 
'https://help.bluespice.com/index.php/InsertLink',
-                       EXTINFO::DEPS => array('bluespice' => '2.22.0')
-               );
-               $this->mExtensionKey = 'MW::InsertLink';
-               wfProfileOut('BS::' . __METHOD__);
-       }
-
        /**
         * Initialise the InsertLink extension
         */
diff --git a/InsertLink/InsertLink.setup.php b/InsertLink/InsertLink.setup.php
index 8d013d7..63c1144 100644
--- a/InsertLink/InsertLink.setup.php
+++ b/InsertLink/InsertLink.setup.php
@@ -1,47 +1,2 @@
 <?php
-
-BsExtensionManager::registerExtension('InsertLink', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
-
-$wgAutoloadClasses['InsertLink'] = __DIR__ . '/InsertLink.class.php';
-
-$wgMessagesDirs['InsertLink'] = __DIR__ . '/i18n';
-
-$aResourceModuleTemplate = array(
-       'localBasePath' => __DIR__.'/resources',
-       'remoteExtPath' => 'BlueSpiceExtensions/InsertLink/resources'
-);
-
-$wgResourceModules['ext.bluespice.insertlink'] = array(
-       'scripts' => 'bluespice.insertLink.js',
-       'messages' => array(
-               'bs-insertlink-button-title',
-               'bs-insertlink-dialog-title',
-               'bs-insertlink-tab-wiki-page',
-               'bs-insertlink-tab-ext-link',
-               'bs-insertlink-tab-email',
-               'bs-insertlink-tab-ext-file',
-               'bs-insertlink-label-page',
-               'bs-insertlink-label-link',
-               'bs-insertlink-label-mail',
-               'bs-insertlink-label-description',
-               'bs-insertlink-label-file',
-               'bs-insertlink-label-searchfile',
-               'bs-insertlink-select-a-page',
-               'bs-insertlink-select-a-namespace',
-               'bs-insertlink-empty-field-text',
-               'bs-insertlink-applet-title',
-               'bs-insertlink-no-applet'
-       ),
-       'dependencies' => array(
-               'ext.bluespice.extjs'
-       )
-) + $aResourceModuleTemplate;
-
-$wgResourceModules['ext.bluespice.insertlink.styles'] = array(
-       'styles' => 'bluespice.insertLink.css',
-       'position' => 'top'
-) + $aResourceModuleTemplate;
-
-unset( $aResourceModuleTemplate );
-
-$wgHooks['LoadExtensionSchemaUpdates'][] = 
'InsertLink::onLoadExtensionSchemaUpdates';
\ No newline at end of file
+wfLoadExtension( 'BlueSpiceExtensions/InsertLink' );
\ No newline at end of file
diff --git a/InsertLink/extension.json b/InsertLink/extension.json
new file mode 100644
index 0000000..c4710cb
--- /dev/null
+++ b/InsertLink/extension.json
@@ -0,0 +1,66 @@
+{
+       "name": "InsertLink",
+       "version": "2.27.0",
+       "url": "https://help.bluespice.com/index.php/InsertLink";,
+       "author": [
+               "Markus Glaser",
+               "Sebastian Ulbricht",
+               "Patric Wirth"
+       ],
+       "descriptionmsg": "bs-insertlink-desc",
+       "type": "bluespice",
+       "license-name": "GPL-2.0+",
+       "bsgExtensions": {
+               "InsertLink": {
+                       "className": "InsertLink",
+                       "extPath": "/BlueSpiceExtensions/InsertLink"
+               }
+       },
+       "MessagesDirs": {
+               "InsertLink": [
+                       "i18n"
+               ]
+       },
+       "AutoloadClasses": {
+               "InsertLink": "InsertLink.class.php"
+       },
+       "ResourceModules": {
+               "ext.bluespice.insertlink": {
+                       "scripts": "bluespice.insertLink.js",
+                       "messages": [
+                               "bs-insertlink-button-title",
+                               "bs-insertlink-dialog-title",
+                               "bs-insertlink-tab-wiki-page",
+                               "bs-insertlink-tab-ext-link",
+                               "bs-insertlink-tab-email",
+                               "bs-insertlink-tab-ext-file",
+                               "bs-insertlink-label-page",
+                               "bs-insertlink-label-link",
+                               "bs-insertlink-label-mail",
+                               "bs-insertlink-label-description",
+                               "bs-insertlink-label-file",
+                               "bs-insertlink-label-searchfile",
+                               "bs-insertlink-select-a-page",
+                               "bs-insertlink-select-a-namespace",
+                               "bs-insertlink-empty-field-text",
+                               "bs-insertlink-applet-title",
+                               "bs-insertlink-no-applet"
+                       ],
+                       "dependencies": [
+                               "ext.bluespice.extjs"
+                       ]
+               },
+               "ext.bluespice.insertlink.styles": {
+                       "styles": "bluespice.insertLink.css",
+                       "position": "top"
+               }
+       },
+       "ResourceFileModulePaths": {
+               "localBasePath": "resources",
+               "remoteExtPath": "BlueSpiceExtensions/InsertLink/resources"
+       },
+       "Hooks": {
+               "LoadExtensionSchemaUpdates": 
"InsertLink::onLoadExtensionSchemaUpdates"
+       },
+       "manifest_version": 1
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib26572d7dc4f75b95d68456b9c3d8ce554f0ec2a
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Gerharddiller85 <gerharddil...@icloud.com>
Gerrit-Reviewer: Dvogel hallowelt <daniel.vo...@hallowelt.com>
Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com>
Gerrit-Reviewer: Mglaser <gla...@hallowelt.biz>
Gerrit-Reviewer: Pwirth <wi...@hallowelt.biz>
Gerrit-Reviewer: Robert Vogel <vo...@hallowelt.biz>
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