[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInterWikiLinks[master]: WikiAdmin is not part of BlueSpice 3. Removed unneeded code and

2018-01-18 Thread Robert Vogel (Code Review)
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 000..fd27cc0
--- /dev/null
+++ b/src/AdminTool.php
@@ -0,0 +1,40 @@
+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 
Gerrit-Reviewer: Ljonka 
Gerrit-Reviewer: Mglaser 
Gerrit-Reviewer: Pwirth 
Gerrit-Reviewer: Robert Vogel 
Gerrit-Reviewer: jenkins-bot <>

___
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits


[MediaWiki-commits] [Gerrit] mediawiki...BlueSpiceInterWikiLinks[master]: WikiAdmin is not part of BlueSpice 3. Removed unneeded code and

2018-01-18 Thread Dvogel hallowelt (Code Review)
Dvogel hallowelt has uploaded a new change for review. ( 
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(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/BlueSpiceInterWikiLinks 
refs/changes/39/404939/1

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 000..fd27cc0
--- /dev/null
+++ b/src/AdminTool.php
@@ -0,0 +1,40 @@
+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: newchange
Gerrit-Change-Id: Ie461dd8c595b96963b5d59e89993efabbd9811cf
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceInterWikiLinks
Gerrit-Branch: master
Gerrit-Owner: Dvogel hallowelt 

___
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits