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

Change subject: BSExtensionInfo: Using real url from extension.json if exists
......................................................................


BSExtensionInfo: Using real url from extension.json if exists

Change-Id: I455a49e8f4712feba81ff3a60bd1627a606a21ed
---
M ExtensionInfo/includes/ViewExtensionInfoTable.php
1 file changed, 4 insertions(+), 2 deletions(-)

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



diff --git a/ExtensionInfo/includes/ViewExtensionInfoTable.php 
b/ExtensionInfo/includes/ViewExtensionInfoTable.php
index 4b9ae5a..53323ae 100644
--- a/ExtensionInfo/includes/ViewExtensionInfoTable.php
+++ b/ExtensionInfo/includes/ViewExtensionInfoTable.php
@@ -101,12 +101,14 @@
         * @return string The URL that points to the aproppriate helpdesk entry.
         */
        private function getHelpdeskUrl( $aExtensionInfo ) {
+               if( !empty( $aExtensionInfo['url'] ) ) {
+                       return $aExtensionInfo['url'];
+               }
                //(09.05.2012)PW: added helpdeskurls to mI18n-files
                //$baseUrl = 
BsConfig::get('MW::ExtensionInfo::HelpdeskBaseUrl');
                $baseUrl = 'http://help.blue-spice.org/index.php';
                $sExtensionName = $aExtensionInfo['name'];
-               $sUrl = $baseUrl . '/' . $sExtensionName;
-               return $sUrl;
+               return "$baseUrl/$sExtensionName";
        }
 
 }

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I455a49e8f4712feba81ff3a60bd1627a606a21ed
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
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