Bmansurov has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/312422

Change subject: Output a better deprecated message
......................................................................

Output a better deprecated message

Make deprecated instructions clearer by telling how to use mw.config.get().

Bug: T98653
Change-Id: I2d85286431e44cd74c7722b75d8631fe58d0634e
---
M resources/src/mediawiki/mediawiki.js
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/22/312422/1

diff --git a/resources/src/mediawiki/mediawiki.js 
b/resources/src/mediawiki/mediawiki.js
index 89bb83b..7692a82 100644
--- a/resources/src/mediawiki/mediawiki.js
+++ b/resources/src/mediawiki/mediawiki.js
@@ -131,7 +131,7 @@
                                key,
                                value,
                                // Deprecation notice for mw.config globals 
(T58550, T72470)
-                               map === mw.config && 'Use mw.config instead.'
+                               map === mw.config && 'Use mw.config.get( \'' + 
key + '\' ) instead.'
                );
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d85286431e44cd74c7722b75d8631fe58d0634e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <bmansu...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to