jenkins-bot has submitted this change and it was merged.
Change subject: Rename the getLink method to avoid confusion with CXLink.getLink
......................................................................
Rename the getLink method to avoid confusion with CXLink.getLink
Bug: T104122
Change-Id: I1d76c0c9bb1b580175ee6d4146a5c6147f0fb1c5
---
M modules/tools/ext.cx.tools.link.js
1 file changed, 3 insertions(+), 3 deletions(-)
Approvals:
Nikerabbit: Looks good to me, approved
jenkins-bot: Verified
diff --git a/modules/tools/ext.cx.tools.link.js
b/modules/tools/ext.cx.tools.link.js
index 1d3e264..f89eb32 100644
--- a/modules/tools/ext.cx.tools.link.js
+++ b/modules/tools/ext.cx.tools.link.js
@@ -16,13 +16,13 @@
};
/**
- * Get the link data for a given title and language.
+ * Get the link details for a given title and language such as page
thumbnail image.
* @param {mediawiki.Api} api
* @param {string} title
* @param {string} language
* @return {jQuery.Promise}
*/
- function getLink( api, title, language ) {
+ function getLinkDetails( api, title, language ) {
var request;
// Normalize the title
@@ -316,7 +316,7 @@
}
api = this.siteMapper.getApi( language );
- return getLink( api, title, language ).then( function (
response ) {
+ return getLinkDetails( api, title, language ).then( function (
response ) {
var pageId;
pageId = Object.keys( response.query.pages )[ 0 ];
--
To view, visit https://gerrit.wikimedia.org/r/221565
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I1d76c0c9bb1b580175ee6d4146a5c6147f0fb1c5
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/ContentTranslation
Gerrit-Branch: master
Gerrit-Owner: Santhosh <[email protected]>
Gerrit-Reviewer: Nikerabbit <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits