From 8feca121f550273e8d141e224e41a0d06b7bacb2 Mon Sep 17 00:00:00 2001 From: Ed Sanders Date: Wed, 4 Apr 2018 15:47:31 +0100 Subject: [PATCH] Use new API for descriptions in TitleWidget Bug: T191333 Change-Id: I5682f2fe3000d61c3760d22e9a567c762cf36710 --- resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js b/resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js index 190962c774..2bbeabf56e 100644 --- a/resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js +++ b/resources/src/mediawiki.widgets/mw.widgets.TitleWidget.js @@ -192,8 +192,7 @@ params.pilimit = this.limit; } if ( this.showDescriptions ) { - params.prop.push( 'pageterms' ); - params.wbptterms = 'description'; + params.prop.push( 'description' ); } return params; }; @@ -243,7 +242,7 @@ redirect: suggestionPage.redirect !== undefined, disambiguation: OO.getProp( suggestionPage, 'pageprops', 'disambiguation' ) !== undefined, imageUrl: OO.getProp( suggestionPage, 'thumbnail', 'source' ), - description: OO.getProp( suggestionPage, 'terms', 'description' ), + description: suggestionPage.description, // Sort index index: suggestionPage.index, originalData: suggestionPage -- 2.20.1