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

Change subject: replaced js wg vars with mw.config.get due to deprecation
......................................................................


replaced js wg vars with mw.config.get due to deprecation

Change-Id: Ib2124295f19584dba366f8b0184790287106802c
---
M ArticleInfo/resources/bluespice.articleInfo.js
M ContextMenu/resources/bluespice.contextmenu.js
M Dashboards/resources/bluespice.dashboards.js
M ExtendedSearch/resources/bluespice.extendedSearch.admin.js
M ExtendedSearch/resources/bluespice.extendedSearch.focus.js
M ExtendedSearch/resources/bluespice.extendedSearch.specialpage.js
M InsertLink/resources/BS.InsertLink/FormPanelFileLink.js
M InsertLink/resources/BS.InsertLink/FormPanelWikiPage.js
M InsertLink/resources/BS.InsertLink/Window.js
M InsertMagic/resources/bluespice.insertMagic.js
M InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
M NamespaceManager/resources/BS.NamespaceManager/Panel.js
M PermissionManager/resources/bluespice.permissionManager.js
M 
ResponsibleEditors/resources/BS.ResponsibleEditors/ResponsibleEditorsPortlet.js
M ResponsibleEditors/resources/bluespice.responsibleEditors.BookshelfPlugin.js
M SaferEdit/resources/bluespice.SaferEdit.editmode.js
M ShoutBox/resources/bluespice.shoutBox.js
M StateBar/resources/bluespice.StateBar.js
M VisualEditor/resources/tiny_mce_plugins/bsactions/plugin.js
M VisualEditor/resources/tiny_mce_plugins/bswikicode/plugin.js
M WantedArticle/resources/bluespice.wantedArticle.js
21 files changed, 43 insertions(+), 37 deletions(-)

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



diff --git a/ArticleInfo/resources/bluespice.articleInfo.js 
b/ArticleInfo/resources/bluespice.articleInfo.js
index e042309..5b4f077 100644
--- a/ArticleInfo/resources/bluespice.articleInfo.js
+++ b/ArticleInfo/resources/bluespice.articleInfo.js
@@ -29,10 +29,12 @@
 
                BsArticleInfo.checkRevisionInterval = 
bsArticleInfoCheckRevisionInterval*1000;
                if( BsArticleInfo.checkRevisionInterval < 1000 ) return;
-               if( wgCurRevisionId < 1 ) return;
+               if ( mw.config.get( "wgCurRevisionId" ) < 1 ) {
+                       return;
+               }
 
                if( $('#bs-statebar').length < 1 ) return;
-               BSPing.registerListener('ArticleInfo', 
BsArticleInfo.checkRevisionInterval, ['checkRevision', wgAction], 
BsArticleInfo.checkRevisionListener);
+               BSPing.registerListener( 'ArticleInfo', 
BsArticleInfo.checkRevisionInterval, [ 'checkRevision', mw.config.get( 
"wgAction" ) ], BsArticleInfo.checkRevisionListener );
        },
 
        updateLastEdited: function() {
@@ -44,7 +46,7 @@
        checkRevisionListener: function( result, Listener) {
                if( result.success !== true ) return;
                if( result.newRevision !== true ) {
-                       BSPing.registerListener('ArticleInfo', 
BsArticleInfo.checkRevisionInterval, ['checkRevision', wgAction], 
BsArticleInfo.checkRevisionListener);
+                       BSPing.registerListener( 'ArticleInfo', 
BsArticleInfo.checkRevisionInterval, [ 'checkRevision', mw.config.get( 
"wgAction" ) ], BsArticleInfo.checkRevisionListener );
                        return;
                }
 
diff --git a/ContextMenu/resources/bluespice.contextmenu.js 
b/ContextMenu/resources/bluespice.contextmenu.js
index e9d5f3d..9bde3a2 100644
--- a/ContextMenu/resources/bluespice.contextmenu.js
+++ b/ContextMenu/resources/bluespice.contextmenu.js
@@ -118,7 +118,7 @@
                var titleParts = title.split('.');
                var fileExtension = titleParts[titleParts.length-1];
 
-               if( wgFileExtensions.indexOf(fileExtension) === -1 ) {
+               if ( mw.config.get( "wgFileExtensions" ).indexOf( fileExtension 
) === -1 ) {
                        return true;
                }
 
diff --git a/Dashboards/resources/bluespice.dashboards.js 
b/Dashboards/resources/bluespice.dashboards.js
index f21fdde..80aba65 100644
--- a/Dashboards/resources/bluespice.dashboards.js
+++ b/Dashboards/resources/bluespice.dashboards.js
@@ -20,7 +20,7 @@
        }
 
        if ( typeof bsPortalConfigLocation !== 'undefined' ) {
-               var image = '<img src="'+ wgScriptPath + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-m_add.png" />';
+               var image = '<img src="' + mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-m_add.png" />';
                var text = $( 'h1.firstHeading' ).html();
                var anchor = $( 'h1.firstHeading' ).html( 
                        text + '<a href="#" id="bs-dashboard-add">' + image + 
'</a>'
diff --git a/ExtendedSearch/resources/bluespice.extendedSearch.admin.js 
b/ExtendedSearch/resources/bluespice.extendedSearch.admin.js
index f29c8e0..bf14383 100644
--- a/ExtendedSearch/resources/bluespice.extendedSearch.admin.js
+++ b/ExtendedSearch/resources/bluespice.extendedSearch.admin.js
@@ -53,7 +53,7 @@
  */
 bsExtendedSearchRequestProgress = function() {
        Ext.Ajax.request({
-               url: wgScriptPath + 
'/extensions/BlueSpiceExtensions/ExtendedSearch/includes/BuildIndex/index_progress.php',
+               url: mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceExtensions/ExtendedSearch/includes/BuildIndex/index_progress.php',
                success: function( response, opts ) {
                        var res = "";
                        if ( response.responseText !== "" ) {
diff --git a/ExtendedSearch/resources/bluespice.extendedSearch.focus.js 
b/ExtendedSearch/resources/bluespice.extendedSearch.focus.js
index 255705a..016fb64 100644
--- a/ExtendedSearch/resources/bluespice.extendedSearch.focus.js
+++ b/ExtendedSearch/resources/bluespice.extendedSearch.focus.js
@@ -13,7 +13,7 @@
 mw.loader.using( 'ext.bluespice.extendedsearch.form', function() {
                if ( typeof bsExtendedSearchSetFocus === "boolean" ) {
                //$(document).scrollTop(): prevent loosing last scroll position 
on history back
-               if ( wgIsArticle === true && bsExtendedSearchSetFocus  === true 
&& $( document ).scrollTop() < 1 ) {
+               if ( mw.config.get( "wgIsArticle" ) === true && 
bsExtendedSearchSetFocus === true && $( document ).scrollTop() < 1 ) {
                        if ( window.location.hash === '' ) {
                                $( '#bs-extendedsearch-input' ).focus();
                        }
diff --git a/ExtendedSearch/resources/bluespice.extendedSearch.specialpage.js 
b/ExtendedSearch/resources/bluespice.extendedSearch.specialpage.js
index 1dddbb8..17db448 100644
--- a/ExtendedSearch/resources/bluespice.extendedSearch.specialpage.js
+++ b/ExtendedSearch/resources/bluespice.extendedSearch.specialpage.js
@@ -127,7 +127,7 @@
         *Collapse facetboxes
         */
        collapseFacets: function() {
-               var imagepath = 
wgScriptPath+'/extensions/BlueSpiceExtensions/ExtendedSearch/resources/images/';
+               var imagepath = mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceExtensions/ExtendedSearch/resources/images/';
 
                $( '.bs-extendedsearch-facetbox-container' ).each( function() {
                        var elements = 
$(this).find('div[class=facetBarEntry]').length;
@@ -176,7 +176,7 @@
                 *  - instead action=remote&mod=ExtendedSearch&rf=getRequestJson
                 *  - value of search_origin is overriden with 'ajax'
                 */
-               ExtendedSearchAjaxManager.oUrlBase = wgScriptPath + '/';
+               ExtendedSearchAjaxManager.oUrlBase = mw.config.get( 
"wgScriptPath" ) + '/';
                if ( 1 in uriParts ) {
                        var uriParams = uriParts[1].split( '&' );
                        var aKeyValue;
@@ -362,7 +362,7 @@
                        clearTimeout( thread );
                        if ( $.inArray( event.which, keys ) > 0 ) return false;
                        if ( inputField.val() === '' ) return false;
-                       url = wgServer + wgScriptPath +
+                       url = mw.config.get( "wgServer" ) + mw.config.get( 
"wgScriptPath" ) +
                                        '?search_scope=text&search_submit=1&q=' 
+ encodeURIComponent( inputField.val() );
 
                        if ( typeof bsExtendedSearchSearchFiles !== 'undefined' 
&& bsExtendedSearchSearchFiles ) {
diff --git a/InsertLink/resources/BS.InsertLink/FormPanelFileLink.js 
b/InsertLink/resources/BS.InsertLink/FormPanelFileLink.js
index 7d04cff..890bc5f 100644
--- a/InsertLink/resources/BS.InsertLink/FormPanelFileLink.js
+++ b/InsertLink/resources/BS.InsertLink/FormPanelFileLink.js
@@ -20,7 +20,7 @@
                        var applet = $("<applet>");
                        applet.attr('id', 'BsFileChooserApplet');
                        applet.attr('name', 'BsFileChooserApplet');
-                       applet.attr('archive', wgScriptPath + 
'/extensions/BlueSpiceExtensions/InsertLink/vendor/BsFileChooserApplet.jar');
+                       applet.attr( 'archive', mw.config.get( "wgScriptPath" ) 
+ '/extensions/BlueSpiceExtensions/InsertLink/vendor/BsFileChooserApplet.jar' );
                        applet.attr('code', 
'biz.hallowelt.InsertLink.BsFileChooserApplet.class');
                        applet.attr('width', '1');
                        applet.attr('height', '1');
diff --git a/InsertLink/resources/BS.InsertLink/FormPanelWikiPage.js 
b/InsertLink/resources/BS.InsertLink/FormPanelWikiPage.js
index cab45a4..0f7e748 100644
--- a/InsertLink/resources/BS.InsertLink/FormPanelWikiPage.js
+++ b/InsertLink/resources/BS.InsertLink/FormPanelWikiPage.js
@@ -44,7 +44,7 @@
 
                if ( obj.type && obj.type === this.linktype ) { //VisualEditor
                        var link = String( obj.href );
-                       link = link.replace( wgServer + "/", "" );
+                       link = link.replace( mw.config.get( "wgServer" ) + "/", 
"" );
                        link = unescape(link);
 
                        if( link === desc ) {
@@ -69,7 +69,7 @@
                                var namespace = parts.shift();
                                //Check if it is a available namespace or part 
of the title
                                var normNsText = 
namespace.toLowerCase().replace(' ', '_' );
-                               var nsId = wgNamespaceIds[normNsText];
+                               var nsId = mw.config.get( "wgNamespaceIds" 
)[normNsText];
                                this.cbPageName.setValue( namespace + ":" + 
parts.join( ':' ) );
 
                        } else {
diff --git a/InsertLink/resources/BS.InsertLink/Window.js 
b/InsertLink/resources/BS.InsertLink/Window.js
index 494a00d..f6c46dd 100644
--- a/InsertLink/resources/BS.InsertLink/Window.js
+++ b/InsertLink/resources/BS.InsertLink/Window.js
@@ -45,7 +45,7 @@
                        this.fpnlMailTo
                ];
 
-               if ( wgUrlProtocols.indexOf( 'file' ) !== -1 ) {
+               if ( mw.config.get( "wgUrlProtocols" ).indexOf( 'file' ) !== -1 
) {
                        this.fpnlFileLink = Ext.create( 
'BS.InsertLink.FormPanelFileLink', {} );
                        items.push( this.fpnlFileLink );
                }
diff --git a/InsertMagic/resources/bluespice.insertMagic.js 
b/InsertMagic/resources/bluespice.insertMagic.js
index 75db600..0a8a2f5 100644
--- a/InsertMagic/resources/bluespice.insertMagic.js
+++ b/InsertMagic/resources/bluespice.insertMagic.js
@@ -1,5 +1,5 @@
 $(document).ready(function(){
-       Ext.Loader.setPath( 'BS.InsertMagic', 
wgScriptPath+'/extensions/BlueSpiceExtensions/InsertMagic/resources/BS.InsertMagic');
+       Ext.Loader.setPath( 'BS.InsertMagic', mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceExtensions/InsertMagic/resources/BS.InsertMagic' );
 
        $('a#bs-editbutton-insertmagic').on('click', function(){
                var me = this;
diff --git 
a/InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js 
b/InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
index 4124929..a810d86 100644
--- 
a/InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
+++ 
b/InterWikiLinks/resources/BS.InterWikiLinks/InsertLink/FormPanelInterWiki.js
@@ -55,7 +55,7 @@
                //overwrites FormPanelWikiPage tab
                if( obj.type && obj.type == this.linktype ) {
                        var link = String(obj.href);
-                       link = link.replace(wgServer+"/", "");
+                       link = link.replace( mw.config.get( "wgServer" ) + "/", 
"" );
                        link = unescape(link);
 
                        if ( link.match( ':' ) ) {
diff --git a/NamespaceManager/resources/BS.NamespaceManager/Panel.js 
b/NamespaceManager/resources/BS.NamespaceManager/Panel.js
index 7015b45..2ae127a 100644
--- a/NamespaceManager/resources/BS.NamespaceManager/Panel.js
+++ b/NamespaceManager/resources/BS.NamespaceManager/Panel.js
@@ -69,7 +69,7 @@
        },
        renderIcon: function( value ) {
                //TODO: make CSS class icon
-               var icon = '<img src="' + wgScriptPath + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/{0}"/>';
+               var icon = '<img src="' + mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/{0}"/>';
                if ( value === false ) {
                        return icon.format( 'bs-cross.png');
                }
diff --git a/PermissionManager/resources/bluespice.permissionManager.js 
b/PermissionManager/resources/bluespice.permissionManager.js
index 2570c7d..44ca9ef 100644
--- a/PermissionManager/resources/bluespice.permissionManager.js
+++ b/PermissionManager/resources/bluespice.permissionManager.js
@@ -1,6 +1,6 @@
 Ext.Loader.setPath(
        'BS.panel.Maximizable',
-       wgScriptPath + '/extensions/BlueSpiceExtensions/PermissionManager' +
+               mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceExtensions/PermissionManager' +
        '/resources/BS.panel/Maximizable.js'
 );
 
diff --git 
a/ResponsibleEditors/resources/BS.ResponsibleEditors/ResponsibleEditorsPortlet.js
 
b/ResponsibleEditors/resources/BS.ResponsibleEditors/ResponsibleEditorsPortlet.js
index 8eb896d..f68b4e7 100644
--- 
a/ResponsibleEditors/resources/BS.ResponsibleEditors/ResponsibleEditorsPortlet.js
+++ 
b/ResponsibleEditors/resources/BS.ResponsibleEditors/ResponsibleEditorsPortlet.js
@@ -15,14 +15,14 @@
        portletConfigClass: 
'BS.ResponsibleEditors.ResponsibleEditorsPortletConfig',
 
        initComponent: function() {
-               this.contentUrl = bs.util.getAjaxDispatcherUrl( 
'ResponsibleEditors::getResponsibleEditorsPortletData', [ 
this.portletItemCount, wgUserId ] );
+               this.contentUrl = bs.util.getAjaxDispatcherUrl( 
'ResponsibleEditors::getResponsibleEditorsPortletData', [ 
this.portletItemCount, mw.config.get( "wgUserId" ) ] );
                this.callParent(arguments);
        },
 
        setPortletConfig: function( cfg ) {
                this.callParent(arguments);
                this.cContent.getLoader().load({
-                       url: bs.util.getAjaxDispatcherUrl( 
'ResponsibleEditors::getResponsibleEditorsPortletData', [ 
this.portletItemCount, wgUserId ] )
+                       url: bs.util.getAjaxDispatcherUrl( 
'ResponsibleEditors::getResponsibleEditorsPortletData', [ 
this.portletItemCount, mw.config.get( "wgUserId" ) ] )
                });
        }
 } );
\ No newline at end of file
diff --git 
a/ResponsibleEditors/resources/bluespice.responsibleEditors.BookshelfPlugin.js 
b/ResponsibleEditors/resources/bluespice.responsibleEditors.BookshelfPlugin.js
index 11106be..1cdad0d 100644
--- 
a/ResponsibleEditors/resources/bluespice.responsibleEditors.BookshelfPlugin.js
+++ 
b/ResponsibleEditors/resources/bluespice.responsibleEditors.BookshelfPlugin.js
@@ -31,7 +31,7 @@
 
        oConf.actionColumnItems.push(
                {
-                       icon: 
wgScriptPath+'/extensions/BlueSpiceExtensions/ResponsibleEditors/resources/images/user_edit.png',
+                               icon: mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceExtensions/ResponsibleEditors/resources/images/user_edit.png',
                        tooltip: mw.message( 
'bs-responsibleeditors-cmchangerespeditors' ).plain(),
                        handler: function(grid, rowIndex, colIndex) {
                                var page_id = sender.jstrBookData.getAt( 
rowIndex ).get( 'page_id' );
diff --git a/SaferEdit/resources/bluespice.SaferEdit.editmode.js 
b/SaferEdit/resources/bluespice.SaferEdit.editmode.js
index d9b21a3..3f72f07 100644
--- a/SaferEdit/resources/bluespice.SaferEdit.editmode.js
+++ b/SaferEdit/resources/bluespice.SaferEdit.editmode.js
@@ -113,8 +113,12 @@
         * Conducts neccessary preparations of edit form and starts 
intermediate saving
         */
        init: function() {
-               if ( wgAction == "edit" || wgAction == "submit" ) 
BsSaferEditEditMode.editMode = true;
-               if ( wgCanonicalNamespace == "Special" ) 
BsSaferEditEditMode.editMode = false;
+               if ( mw.config.get( "wgAction" ) == "edit" || mw.config.get( 
"wgAction" ) == "submit" ) {
+                       BsSaferEditEditMode.editMode = true;
+               }
+               if ( mw.config.get( "wgCanonicalNamespace" ) == "Special" ) {
+                       BsSaferEditEditMode.editMode = false;
+               }
 
                if ( !BsSaferEditEditMode.editMode ) {
                        return;
diff --git a/ShoutBox/resources/bluespice.shoutBox.js 
b/ShoutBox/resources/bluespice.shoutBox.js
index 6a62d90..8b2828d 100644
--- a/ShoutBox/resources/bluespice.shoutBox.js
+++ b/ShoutBox/resources/bluespice.shoutBox.js
@@ -80,7 +80,7 @@
                BsShoutBox.ajaxLoader.fadeIn();
 
                this.msgList.load(
-                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::getShouts', [ wgArticleId, sblimit ] ),
+                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::getShouts', [ mw.config.get( "wgArticleId" ), sblimit ] ),
                                function( data ) {
                                        BsShoutBox.msgList.slideDown();
                                        BsShoutBox.btnSend.blur().removeAttr( 
'disabled' ); //reactivate the send button
@@ -104,7 +104,7 @@
                $( document ).trigger( "onBsShoutboxBeforeArchived", [ 
BsShoutBox ] );
                BsShoutBox.ajaxLoader.fadeIn();
                $.post(
-                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::archiveShout', [ iShoutID, wgArticleId ] ),
+                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::archiveShout', [ iShoutID, mw.config.get( "wgArticleId" ) ] ),
                                function( data ) {
                                        BsShoutBox.updateShoutbox();
                                        $( "#bs-sb-error" ).html( data 
).fadeIn().delay( "1500" ).fadeOut();
@@ -164,7 +164,7 @@
                BsShoutBox.textField.blur().attr( 'disabled', 'disabled' );
 
                $.post(
-                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::insertShout', [ wgArticleId, sMessage ] ),
+                               bs.util.getAjaxDispatcherUrl( 
'ShoutBox::insertShout', [ mw.config.get( "wgArticleId" ), sMessage ] ),
                                function( data ) {
                                        var responseObj = $.parseJSON( data );
                                        if ( responseObj.success === false ) {
diff --git a/StateBar/resources/bluespice.StateBar.js 
b/StateBar/resources/bluespice.StateBar.js
index e37b80d..a57bf73 100644
--- a/StateBar/resources/bluespice.StateBar.js
+++ b/StateBar/resources/bluespice.StateBar.js
@@ -17,10 +17,10 @@
        oViewToggler: null,
        oStateBarView: null,
        bAjaxCallComplete: false,
-       sStateBarBodyLoadView: '<div id="sStateBarBodyLoadView"><center><img 
src="' + wgScriptPath + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-ajax-loader-bar-blue.gif"
 /></center></div>',
+       sStateBarBodyLoadView: '<div id="sStateBarBodyLoadView"><center><img 
src="' + mw.config.get( "wgScriptPath" ) + 
'/extensions/BlueSpiceFoundation/resources/bluespice/images/bs-ajax-loader-bar-blue.gif"
 /></center></div>',
        aRegisteredToggleClickElements: [],
-       imagePathActive: 
wgScriptPath+'/skins/BlueSpiceSkin/resources/images/desktop/statusbar-btn_less.png',
-       imagePathInactive: 
wgScriptPath+'/skins/BlueSpiceSkin/resources/images/desktop/statusbar-btn-more.png',
+       imagePathActive: mw.config.get( "wgScriptPath" ) + 
'/skins/BlueSpiceSkin/resources/images/desktop/statusbar-btn_less.png',
+       imagePathInactive: mw.config.get( "wgScriptPath" ) + 
'/skins/BlueSpiceSkin/resources/images/desktop/statusbar-btn-more.png',
 
        getStateBarBody: function(){
                if ( BsStateBar.bAjaxCallComplete === true ) return;
@@ -33,12 +33,12 @@
                var params = {
                        action:'ajax',
                        rs:'StateBar::ajaxCollectBodyViews',
-                       articleID: wgArticleId
+                       articleID: mw.config.get( "wgArticleId" )
                };
 
                $(document).trigger( 'BsStateBarBodyBeforeLoad', [params] );
                $.getJSON(
-                       wgScriptPath + '/index.php',
+                       mw.config.get( "wgScriptPath" ) + '/index.php',
                        params,
                        function( result ) {
                                $(document).trigger( 'BsStateBarBodyLoad', 
[result] );
diff --git a/VisualEditor/resources/tiny_mce_plugins/bsactions/plugin.js 
b/VisualEditor/resources/tiny_mce_plugins/bsactions/plugin.js
index 9f6a1c7..0de82fa 100644
--- a/VisualEditor/resources/tiny_mce_plugins/bsactions/plugin.js
+++ b/VisualEditor/resources/tiny_mce_plugins/bsactions/plugin.js
@@ -99,10 +99,10 @@
                }
 
                ajaxParams = {
-                       articleId: wgArticleId,
-                       username: escape(wgUserName),
-                       pageName: wgPageName,
-                       namespace: wgNamespaceNumber,
+                       articleId: mw.config.get( "wgArticleId" ),
+                       username: escape( mw.config.get( "wgUserName" ) ),
+                       pageName: mw.config.get( "wgPageName" ),
+                       namespace: mw.config.get( "wgNamespaceNumber" ),
                        starttime: $("input[name=wpStarttime]").val(),
                        edittime: $("input[name=wpEdittime]").val(),
                        editsection: $("input[name=wpSection]").val(),
diff --git a/VisualEditor/resources/tiny_mce_plugins/bswikicode/plugin.js 
b/VisualEditor/resources/tiny_mce_plugins/bswikicode/plugin.js
index b0c48b8..4196872 100644
--- a/VisualEditor/resources/tiny_mce_plugins/bswikicode/plugin.js
+++ b/VisualEditor/resources/tiny_mce_plugins/bswikicode/plugin.js
@@ -2142,7 +2142,7 @@
                                        var images = 
ed.getBody().getElementsByTagName('img');
                                        for( var i = 0; i < images.length; i++ 
) {
                                                //We process only matching nodes
-                                               if ( decodeURI( images[i].src ) 
!== wgServer+_imageDummyUrl+'?'+data.file ) {
+                                               if ( decodeURI( images[i].src ) 
!== mw.config.get( "wgServer" ) + _imageDummyUrl + '?' + data.file ) {
                                                        continue;
                                                }
 
diff --git a/WantedArticle/resources/bluespice.wantedArticle.js 
b/WantedArticle/resources/bluespice.wantedArticle.js
index 272254e..7f04705 100644
--- a/WantedArticle/resources/bluespice.wantedArticle.js
+++ b/WantedArticle/resources/bluespice.wantedArticle.js
@@ -200,7 +200,7 @@
 
 mw.loader.using( 'ext.bluespice',function() {
        BsWantedArticle.config = {
-               urlBase: wgServer + wgScriptPath
+               urlBase: mw.config.get( "wgServer" ) + mw.config.get( 
"wgScriptPath" )
        };
        BsWantedArticle.init();
 } );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: Ib2124295f19584dba366f8b0184790287106802c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/BlueSpiceExtensions
Gerrit-Branch: master
Gerrit-Owner: Tweichart <weich...@hallowelt.biz>
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