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

Change subject: BSExtensionManager: Added a fallback when extension got prefixed
......................................................................


BSExtensionManager: Added a fallback when extension got prefixed

* Backwards compatibility: extensions will have a BlueSice prefix in the future

Change-Id: I9aa9a30642577aadadff9666c6f0e8e4ff5b4732
---
M includes/ExtensionManager.class.php
1 file changed, 6 insertions(+), 0 deletions(-)

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



diff --git a/includes/ExtensionManager.class.php 
b/includes/ExtensionManager.class.php
index c5d530a..c8c5720 100644
--- a/includes/ExtensionManager.class.php
+++ b/includes/ExtensionManager.class.php
@@ -191,6 +191,12 @@
 
        public static function getExtension( $name ) {
                wfProfileIn( 'Performance: ' . __METHOD__ );
+               //Backwards compatibility: extensions will have a BlueSice 
prefix in
+               //the future
+               if ( isset( self::$prRunningExtensions["BlueSpice$name"] ) ) {
+                       //TODO: Add a wfDeprecated( __METHOD__, 'next BS 
Version' );
+                       return self::$prRunningExtensions["BlueSpice$name"];
+               }
                if ( isset( self::$prRunningExtensions[$name] ) ) {
                        return self::$prRunningExtensions[$name];
                }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I9aa9a30642577aadadff9666c6f0e8e4ff5b4732
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceFoundation
Gerrit-Branch: master
Gerrit-Owner: Pwirth <wi...@hallowelt.biz>
Gerrit-Reviewer: Dvogel hallowelt <daniel.vo...@hallowelt.com>
Gerrit-Reviewer: Ljonka <l.verhovs...@gmail.com>
Gerrit-Reviewer: Mglaser <gla...@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