Gerharddiller85 has uploaded a new change for review.

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

Change subject: InterWikiLinks: using extension.json
......................................................................

InterWikiLinks: using extension.json

Change-Id: I8dc57ba90cb614dfcf9bf554668560b733c3c9e3
---
M InterWikiLinks/InterWikiLinks.class.php
M InterWikiLinks/InterWikiLinks.setup.php
A InterWikiLinks/extension.json
3 files changed, 57 insertions(+), 65 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceExtensions 
refs/changes/26/305226/1

diff --git a/InterWikiLinks/InterWikiLinks.class.php 
b/InterWikiLinks/InterWikiLinks.class.php
index dd0eb5b..5f45b15 100644
--- a/InterWikiLinks/InterWikiLinks.class.php
+++ b/InterWikiLinks/InterWikiLinks.class.php
@@ -38,34 +38,6 @@
  */
 class InterWikiLinks extends BsExtensionMW {
 
-       /**
-        * Constructor of InterWikiLinks class
-        */
-       public function __construct() {
-               wfProfileIn( 'BS::'.__METHOD__ );
-               // Base settings
-               $this->mExtensionFile = __FILE__;
-               $this->mExtensionType = EXTTYPE::SPECIALPAGE;
-               $this->mInfo = array(
-                       EXTINFO::NAME        => 'InterWikiLinks',
-                       EXTINFO::DESCRIPTION => 'bs-interwikilinks-desc',
-                       EXTINFO::AUTHOR      => 'Markus Glaser, Sebastian 
Ulbricht',
-                       EXTINFO::VERSION     => 'default',
-                       EXTINFO::STATUS      => 'default',
-                       EXTINFO::PACKAGE     => 'default',
-                       EXTINFO::URL         => 
'https://help.bluespice.com/index.php/Interwikilinks',
-                       EXTINFO::DEPS        => array( 'bluespice' => '2.22.0' )
-               );
-
-               WikiAdmin::registerModule('InterWikiLinks', array(
-                       'image' => 
'/extensions/BlueSpiceExtensions/WikiAdmin/resources/images/bs-btn_interwikilinks_v1.png',
-                       'level' => 'wikiadmin',
-                       'message' => 'bs-interwikilinks-label'
-                       )
-               );
-               wfProfileOut( 'BS::'.__METHOD__ );
-       }
-
        protected function initExt() {
                wfProfileIn('BS::InterWikiLinks::initExt');
 
diff --git a/InterWikiLinks/InterWikiLinks.setup.php 
b/InterWikiLinks/InterWikiLinks.setup.php
index 4835f28..327d5e2 100644
--- a/InterWikiLinks/InterWikiLinks.setup.php
+++ b/InterWikiLinks/InterWikiLinks.setup.php
@@ -1,38 +1,2 @@
 <?php
-BsExtensionManager::registerExtension('InterWikiLinks', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE, BsACTION::LOAD_SPECIALPAGE);
-
-$wgAutoloadClasses['InterWikiLinks'] = __DIR__ . '/InterWikiLinks.class.php';
-$wgAutoloadClasses['BSApiTasksInterWikiLinksManager'] = __DIR__ . 
'/includes/api/BSApiTasksInterWikiLinksManager.php';
-
-$wgMessagesDirs['InterWikiLinks'] = __DIR__ . '/i18n';
-
-$wgResourceModules['ext.bluespice.interWikiLinks'] = array(
-       'scripts' => 
'extensions/BlueSpiceExtensions/InterWikiLinks/resources/bluespice.interWikiLinks.js',
-       'messages' => array(
-               'bs-interwikilinks-headerprefix',
-               'bs-interwikilinks-headerurl',
-               'bs-interwikilinks-titleaddinterwikilink',
-               'bs-interwikilinks-titleeditinterwikilink',
-               'bs-interwikilinks-labelprefix',
-               'bs-interwikilinks-labelurl',
-               'bs-interwikilinks-titledeleteinterwikilink',
-               'bs-interwikilinks-confirmdeleteinterwikilink'
-       ),
-       'dependencies' => array(
-               'ext.bluespice.extjs'
-       ),
-       'localBasePath' => $IP,
-       'remoteBasePath' => &$GLOBALS['wgScriptPath']
-);
-$wgResourceModules['bluespice.insertLink.interWikiLinks'] = array(
-       'scripts' => 
'extensions/BlueSpiceExtensions/InterWikiLinks/resources/bluespice.insertLink.interWikiLinks.js',
-       'messages' => array(
-               'bs-interwikilinks-insertlink-tabtitle',
-               'bs-interwikilinks-insertlink-labelprefix',
-               'bs-interwikilink-select-a-prefix'
-       ),
-       'localBasePath' => $IP,
-       'remoteBasePath' => &$GLOBALS['wgScriptPath']
-);
-
-$wgAPIModules['bs-interwikilinks-tasks'] = 'BSApiTasksInterWikiLinksManager';
\ No newline at end of file
+wfLoadExtension( 'BlueSpiceExtensions/InterWikiLinks' );
\ No newline at end of file
diff --git a/InterWikiLinks/extension.json b/InterWikiLinks/extension.json
new file mode 100644
index 0000000..1b264c2
--- /dev/null
+++ b/InterWikiLinks/extension.json
@@ -0,0 +1,56 @@
+{      "name": "InterWikiLinks",
+       "version": "2.27.0",
+       "url": "https://help.bluespice.com/index.php/Interwikilinks";,
+       "author": "Markus Glaser, Sebastian Ulbricht",
+       "descriptionmsg": "bs-interwikilinks-desc",
+       "type": "bluespice",
+       "bsgExtensions": {
+               "InterWikiLinks": {
+                       "className": "InterWikiLinks",
+                       "extPath": "/BlueSpiceExtensions/InterWikiLinks"
+               }
+       },
+       "APIModules": {
+               "bs-interwikilinks-tasks": "BSApiTasksInterWikiLinksManager"
+       },
+       "MessagesDirs": {
+               "InterWikiLinks": [
+                       "i18n"
+               ]
+       },
+       "AutoloadClasses": {
+               "InterWikiLinks": "InterWikiLinks.class.php",
+               "BSApiTasksInterWikiLinksManager": 
"includes/api/BSApiTasksInterWikiLinksManager.php"
+       },
+       "ResourceModules": {
+               "ext.bluespice.interWikiLinks": {
+                       "scripts": 
"extensions/BlueSpiceExtensions/InterWikiLinks/resources/bluespice.interWikiLinks.js",
+                       "messages": [
+                               "bs-interwikilinks-headerprefix",
+                               "bs-interwikilinks-headerurl",
+                               "bs-interwikilinks-titleaddinterwikilink",
+                               "bs-interwikilinks-titleeditinterwikilink",
+                               "bs-interwikilinks-labelprefix",
+                               "bs-interwikilinks-labelurl",
+                               "bs-interwikilinks-titledeleteinterwikilink",
+                               "bs-interwikilinks-confirmdeleteinterwikilink"
+                       ],
+                       "dependencies": [
+                               "ext.bluespice.extjs"
+                       ],
+                       "localBasePath": null,
+                       "remoteBasePath": "/REL1_27"
+               },
+               "bluespice.insertLink.interWikiLinks": {
+                       "scripts": 
"extensions/BlueSpiceExtensions/InterWikiLinks/resources/bluespice.insertLink.interWikiLinks.js",
+                       "messages": [
+                               "bs-interwikilinks-insertlink-tabtitle",
+                               "bs-interwikilinks-insertlink-labelprefix",
+                               "bs-interwikilink-select-a-prefix"
+                       ],
+                       "localBasePath": null,
+                       "remoteBasePath": "/REL1_27"
+               }
+       },
+       "manifest_version": 1
+}

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I8dc57ba90cb614dfcf9bf554668560b733c3c9e3
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Gerharddiller85 <gerharddil...@icloud.com>

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

Reply via email to