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

Change subject: SmartList: using extension.json
......................................................................


SmartList: using extension.json

Patch Set 2: whitespace, authors, license

Change-Id: I8a9e9d14f4380780b0ec7eae7b8da1dce43197bf
---
M SmartList/SmartList.class.php
M SmartList/SmartList.setup.php
A SmartList/extension.json
3 files changed, 35 insertions(+), 36 deletions(-)

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



diff --git a/SmartList/SmartList.class.php b/SmartList/SmartList.class.php
index 5f542db..ac5392b 100644
--- a/SmartList/SmartList.class.php
+++ b/SmartList/SmartList.class.php
@@ -40,31 +40,6 @@
  * @subpackage SmartList
  */
 class SmartList extends BsExtensionMW {
-
-       /**
-        * Constructor of SmartList class
-        */
-       public function __construct() {
-               wfProfileIn( 'BS::' . __METHOD__ );
-               // Base settings
-               $this->mExtensionFile = __FILE__;
-               $this->mExtensionType = EXTTYPE::VARIABLE;
-               $this->mInfo = array(
-                       EXTINFO::NAME        => 'SmartList',
-                       EXTINFO::DESCRIPTION => 'bs-smartlist-desc',
-                       EXTINFO::AUTHOR      => 'Markus Glaser, Robert Vogel, 
Patric Wirth, Stephan Muggli, Leonid Verhovskij',
-                       EXTINFO::VERSION     => 'default',
-                       EXTINFO::STATUS      => 'default',
-                       EXTINFO::PACKAGE     => 'default',
-                       EXTINFO::URL         => 
'https://help.bluespice.com/index.php/SmartList',
-                       EXTINFO::DEPS => array(
-                               'bluespice' => '2.22.0'
-                       )
-               );
-               $this->mExtensionKey = 'MW::SmartList';
-               wfProfileOut( 'BS::' . __METHOD__ );
-       }
-
        /**
         * Initialization of ShoutBox extension
         */
diff --git a/SmartList/SmartList.setup.php b/SmartList/SmartList.setup.php
index 08773bf..8911fe2 100644
--- a/SmartList/SmartList.setup.php
+++ b/SmartList/SmartList.setup.php
@@ -1,12 +1,2 @@
 <?php
-
-BsExtensionManager::registerExtension('SmartList', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
-
-$wgMessagesDirs['SmartList'] = __DIR__ . '/i18n';
-
-$wgAutoloadClasses['SmartList'] = __DIR__ . '/SmartList.class.php';
-$wgAutoloadClasses['BSApiTasksSmartList'] = __DIR__ . 
'/includes/api/BSApiTasksSmartList.php';
-
-$GLOBALS['wgHooks']['LoadExtensionSchemaUpdates'][] = 
'SmartList::getSchemaUpdates';
-
-$wgAPIModules['bs-smartlist-tasks'] = 'BSApiTasksSmartList';
+wfLoadExtension( 'BlueSpiceExtensions/SmartList' );
\ No newline at end of file
diff --git a/SmartList/extension.json b/SmartList/extension.json
new file mode 100644
index 0000000..401b362
--- /dev/null
+++ b/SmartList/extension.json
@@ -0,0 +1,34 @@
+{
+       "name": "SmartList",
+       "version": "2.27.0",
+       "url": "https://help.bluespice.com/index.php/SmartList";,
+       "author": [
+               "Markus Glaser",
+               "Robert Vogel",
+               "Patric Wirth",
+               "Stephan Muggli",
+               "Leonid Verhovskij"
+       ],
+       "descriptionmsg": "bs-smartlist-desc",
+       "license-name": "GPL-2.0+",
+       "type": "bluespice",
+       "bsgExtensions": {
+               "SmartList": {
+                       "className": "SmartList",
+                       "extPath": "/BlueSpiceExtensions/SmartList"
+               }
+       },
+       "APIModules": {
+               "bs-smartlist-tasks": "BSApiTasksSmartList"
+       },
+       "MessagesDirs": {
+               "SmartList": [
+                       "i18n"
+               ]
+       },
+       "AutoloadClasses": {
+               "SmartList": "SmartList.class.php",
+               "BSApiTasksSmartList": "includes/api/BSApiTasksSmartList.php"
+       },
+       "manifest_version": 1
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I8a9e9d14f4380780b0ec7eae7b8da1dce43197bf
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