Robert Vogel has submitted this change and it was merged.

Change subject: BSFoundation: Added extension type bluespice for special version
......................................................................


BSFoundation: Added extension type bluespice for special version

Change-Id: I204de44529162450bf6b732b995e5db0237e6a92
---
M BlueSpice.hooks.php
M i18n/core/en.json
M i18n/core/qqq.json
M includes/CoreHooks.php
4 files changed, 14 insertions(+), 2 deletions(-)

Approvals:
  Robert Vogel: Verified; Looks good to me, approved
  jenkins-bot: Checked



diff --git a/BlueSpice.hooks.php b/BlueSpice.hooks.php
index 62b422c..fcebfa2 100644
--- a/BlueSpice.hooks.php
+++ b/BlueSpice.hooks.php
@@ -14,6 +14,7 @@
 $wgHooks['SkinAfterContent'][] = 'BsCoreHooks::onSkinAfterContent';
 $wgHooks['ParserFirstCallInit'][] = 'BsCoreHooks::onParserFirstCallInit';
 $wgHooks['UserAddGroup'][] = 'BsGroupHelper::addTemporaryGroupToUserHelper';
+$wgHooks['ExtensionTypes'][] = 'BsCoreHooks::onExtensionTypes';
 #$wgHooks['UnitTestsList'][] = 'BsCoreHooks::onUnitTestsList';
 
 // START cache invalidation hooks
diff --git a/i18n/core/en.json b/i18n/core/en.json
index d1e79d2..b2b1c8a 100644
--- a/i18n/core/en.json
+++ b/i18n/core/en.json
@@ -84,5 +84,6 @@
        "bs-validator-error-namespace-does-not-exist": "Namespace does not 
exist: $1",
        "bs-validator-error-namespace-on-blacklist": "Namespace not allowed: 
$1",
        "bs-validator-error-title-does-not-exist": "Page does not exist: $1",
-       "bs-validator-error-title-namespace-on-blacklist": "Page not allowed: 
$1"
+       "bs-validator-error-title-namespace-on-blacklist": "Page not allowed: 
$1",
+       "bs-exttype-bluespice": "BlueSpice extensions"
 }
diff --git a/i18n/core/qqq.json b/i18n/core/qqq.json
index 9f21923..dffd680 100644
--- a/i18n/core/qqq.json
+++ b/i18n/core/qqq.json
@@ -88,5 +88,6 @@
        "bs-validator-error-namespace-does-not-exist": "Error message in case a 
given namespace id does not exist.\n\nParameters:\n* $1 - the namespace id",
        "bs-validator-error-namespace-on-blacklist": "Error message in case a 
given namespace id is on the blacklist.\n\nParameters:\n* $1 - the namespace 
id",
        "bs-validator-error-title-does-not-exist": "Error message in case a 
given Title object does not exist.\n\nParameters:\n* $1 - the prefixed text of 
the Title",
-       "bs-validator-error-title-namespace-on-blacklist": "Error message in 
case the namespace of a given Title object is on the 
blacklist.\n\nParameters:\n* $1 - the prefixed text of the Title"
+       "bs-validator-error-title-namespace-on-blacklist": "Error message in 
case the namespace of a given Title object is on the 
blacklist.\n\nParameters:\n* $1 - the prefixed text of the Title",
+       "bs-exttype-bluespice": "This is the name of the extension group on 
[[Special:Version]]."
 }
diff --git a/includes/CoreHooks.php b/includes/CoreHooks.php
index c9357f3..51f887e 100755
--- a/includes/CoreHooks.php
+++ b/includes/CoreHooks.php
@@ -547,6 +547,15 @@
        }
 
        /**
+        * Register 'bluespice' as extension type
+        * @param array $extTypes
+        */
+       public static function onExtensionTypes( &$extTypes ) {
+               $extTypes['bluespice'] = wfMessage( "bs-exttype-bluespice" 
)->plain();
+               return true;
+       }
+
+       /**
         * Register PHP Unit Tests with MediaWiki framework
         * @param array $files
         * @return boolean Always true to keep hook running

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I204de44529162450bf6b732b995e5db0237e6a92
Gerrit-PatchSet: 6
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Pwirth <[email protected]>
Gerrit-Reviewer: Robert Vogel <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to