GWicke has uploaded a new change for review. https://gerrit.wikimedia.org/r/152293
Change subject: Pass title to action=parse requests for extensions ...................................................................... Pass title to action=parse requests for extensions Test case: http://localhost:8000/frwikisource/Les_Jeux_rustiques_et_divins%2FExorde?oldid=4662317 The navigation now properly shows the prev & next page links. Bug: 69190 Change-Id: I0dabedab8a6a38ca9e3ac750b257358de58f3440 --- M lib/mediawiki.ApiRequest.js 1 file changed, 4 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/parsoid refs/changes/93/152293/1 diff --git a/lib/mediawiki.ApiRequest.js b/lib/mediawiki.ApiRequest.js index a41c7a0..b0dede6 100644 --- a/lib/mediawiki.ApiRequest.js +++ b/lib/mediawiki.ApiRequest.js @@ -445,17 +445,19 @@ * @param {string} title The title of the page to use as context * @param {string} text */ -function PHPParseRequest ( env, title, text ) { - ApiRequest.call(this, env, title); +function PHPParseRequest ( env, name, text ) { + ApiRequest.call(this, env, name); this.text = text; this.queueKey = text; this.reqType = "Extension Parse"; + var title = env.page && env.page.title && env.page.title.key || undefined; var apiargs = { format: 'json', action: 'parse', text: text, + title: title, disablepp: 'true' }; var uri = env.conf.wiki.apiURI; -- To view, visit https://gerrit.wikimedia.org/r/152293 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0dabedab8a6a38ca9e3ac750b257358de58f3440 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: GWicke <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
