Robert Vogel has submitted this change and it was merged. ( 
https://gerrit.wikimedia.org/r/404939 )

Change subject: WikiAdmin is not part of BlueSpice 3. Removed unneeded code and
......................................................................


WikiAdmin is not part of BlueSpice 3. Removed unneeded code and

used new registry for admin tools

Change-Id: Ie461dd8c595b96963b5d59e89993efabbd9811cf
---
M InterWikiLinks.class.php
M extension.json
A src/AdminTool.php
3 files changed, 46 insertions(+), 15 deletions(-)

Approvals:
  Robert Vogel: Verified; Looks good to me, approved



diff --git a/InterWikiLinks.class.php b/InterWikiLinks.class.php
index d1a1b74..e4f1671 100644
--- a/InterWikiLinks.class.php
+++ b/InterWikiLinks.class.php
@@ -37,21 +37,6 @@
  */
 class InterWikiLinks extends BsExtensionMW {
 
-       /**
-        * Constructor of InterWikiLinks class
-        */
-       public function __construct() {
-               wfProfileIn( 'BS::'.__METHOD__ );
-               WikiAdmin::registerModule( 'InterWikiLinks', [
-                       'image' => 
'/extensions/BlueSpiceExtensions/WikiAdmin/resources/images/bs-btn_interwikilinks_v1.png',
-                       'level' => 'wikiadmin',
-                       'message' => 'bs-interwikilinks-label',
-                       'iconCls' => 'bs-icon-chain',
-                       'permissions' => [ 'interwikilinks-viewspecialpage' ],
-               ]);
-               wfProfileOut( 'BS::'.__METHOD__ );
-       }
-
        protected function initExt() {
                wfProfileIn('BS::InterWikiLinks::initExt');
 
diff --git a/extension.json b/extension.json
index 89e085b..185ae1a 100644
--- a/extension.json
+++ b/extension.json
@@ -16,6 +16,12 @@
                        "extPath": "/BlueSpiceInterWikiLinks"
                }
        },
+       "BlueSpiceFoundationAdminToolRegistry": {
+               "bs-interwikilinks-manager": 
"BlueSpice\\InterWikiLinks\\AdminTool"
+       },
+       "AutoloadNamespaces": {
+               "BlueSpice\\InterWikiLinks\\" : "src/"
+       },
        "SpecialPages": {
                "InterWikiLinks": "SpecialInterWikiLinks"
        },
diff --git a/src/AdminTool.php b/src/AdminTool.php
new file mode 100644
index 0000000..fd27cc0
--- /dev/null
+++ b/src/AdminTool.php
@@ -0,0 +1,40 @@
+<?php
+
+namespace BlueSpice\InterWikiLinks;
+
+use BlueSpice\IAdminTool;
+
+class AdminTool implements IAdminTool {
+
+       public function getURL() {
+               $tool = \SpecialPage::getTitleFor( 'InterWikiLinks' );
+               return $tool->getLocalURL();
+       }
+
+       public function getDescription() {
+               return wfMessage( 'bs-interwikilinks-desc' );
+       }
+
+       public function getName() {
+               return wfMessage( 'bs-interwikilinks-label' );
+       }
+
+       public function getClasses() {
+               $classes = array(
+                       'bs-icon-chain'
+               );
+
+               return $classes;
+       }
+
+       public function getDataAttributes() {
+       }
+
+       public function getPermissions() {
+               $permissions = array(
+                       'interwikilinks-viewspecialpage'
+               );
+               return $permissions;
+       }
+
+}
\ No newline at end of file

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ie461dd8c595b96963b5d59e89993efabbd9811cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInterWikiLinks
Gerrit-Branch: master
Gerrit-Owner: 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