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

Change subject: HideTitle: using extension.json
......................................................................


HideTitle: using extension.json

Change-Id: Ifac564ce696b937bf389c94f5ee7ddd02569f34a
---
M HideTitle/HideTitle.class.php
M HideTitle/HideTitle.setup.php
A HideTitle/extension.json
3 files changed, 27 insertions(+), 29 deletions(-)

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



diff --git a/HideTitle/HideTitle.class.php b/HideTitle/HideTitle.class.php
index 457904b..2a36aff 100644
--- a/HideTitle/HideTitle.class.php
+++ b/HideTitle/HideTitle.class.php
@@ -35,27 +35,7 @@
 
        protected $bHideTitle = false;
 
-       public function __construct() {
-               wfProfileIn( 'BS::'.__METHOD__ );
-
-               // Base settings
-               $this->mExtensionFile = __FILE__;
-               $this->mExtensionType = EXTTYPE::VARIABLE;
-               $this->mInfo = array(
-                       EXTINFO::NAME        => 'HideTitle',
-                       EXTINFO::DESCRIPTION => 'bs-hidetitle-desc',
-                       EXTINFO::AUTHOR      => 'Markus Glaser',
-                       EXTINFO::VERSION     => 'default',
-                       EXTINFO::STATUS      => 'default',
-                       EXTINFO::PACKAGE     => 'default',
-                       EXTINFO::URL         => 
'https://help.bluespice.com/index.php/HideTitle',
-                       EXTINFO::DEPS        => array('bluespice' => '2.22.0')
-               );
-               $this->mExtensionKey = 'MW::HideTitle';
-               wfProfileOut( 'BS::'.__METHOD__ );
-       }
-
-       protected function initExt() {
+        protected function initExt() {
                wfProfileIn( 'BS::'.__METHOD__ );
                // Hooks
                $this->setHook( 'BeforePageDisplay' );
diff --git a/HideTitle/HideTitle.setup.php b/HideTitle/HideTitle.setup.php
index f29c7e5..f89cd52 100644
--- a/HideTitle/HideTitle.setup.php
+++ b/HideTitle/HideTitle.setup.php
@@ -1,9 +1,2 @@
 <?php
-
-BsExtensionManager::registerExtension('HideTitle', 
BsRUNLEVEL::FULL|BsRUNLEVEL::REMOTE);
-
-$wgAutoloadClasses['HideTitle'] = __DIR__ . '/HideTitle.class.php';
-
-$wgMessagesDirs['HideTitle'] = __DIR__ . '/i18n';
-
-$wgExtensionMessagesFiles['HideTitleMagic'] = __DIR__ . 
'/languages/HideTitle.i18n.magic.php';
\ No newline at end of file
+wfLoadExtension( 'BlueSpiceExtensions/HideTitle' );
\ No newline at end of file
diff --git a/HideTitle/extension.json b/HideTitle/extension.json
new file mode 100644
index 0000000..ac7a919
--- /dev/null
+++ b/HideTitle/extension.json
@@ -0,0 +1,25 @@
+{      "name": "HideTitle",
+       "version": "2.27.0",
+       "url": "https://help.bluespice.com/index.php/HideTitle";,
+       "author": "Markus Glaser",
+       "descriptionmsg": "bs-hidetitle-desc",
+       "type": "bluespice",
+       "bsgExtensions": {
+               "HideTitle": {
+                       "className": "HideTitle",
+                       "extPath": "/BlueSpiceExtensions/HideTitle"
+               }
+       },
+       "MessagesDirs": {
+               "HideTitle": [
+                       "i18n"
+               ]
+       },
+       "ExtensionMessagesFiles": {
+               "HideTitleMagic": "languages/HideTitle.i18n.magic.php"
+       },
+       "AutoloadClasses": {
+               "HideTitle": "HideTitle.class.php"
+       },
+       "manifest_version": 1
+}

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ifac564ce696b937bf389c94f5ee7ddd02569f34a
Gerrit-PatchSet: 1
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