jenkins-bot has submitted this change and it was merged.
Change subject: Pass the revid when expanding templates
......................................................................
Pass the revid when expanding templates
* Adds support {{REVISIONID}} and similar variables.
* Depends on the upstream patch being deployed,
https://gerrit.wikimedia.org/r/#/c/176305/
Bug: T73306
Change-Id: I2396709a93c42e951b3d0ef2ba054924efbf3c43
---
M lib/mediawiki.ApiRequest.js
1 file changed, 4 insertions(+), 0 deletions(-)
Approvals:
Cscott: Looks good to me, approved
jenkins-bot: Verified
diff --git a/lib/mediawiki.ApiRequest.js b/lib/mediawiki.ApiRequest.js
index a0fcde4..d0e203f 100644
--- a/lib/mediawiki.ApiRequest.js
+++ b/lib/mediawiki.ApiRequest.js
@@ -371,6 +371,10 @@
apiargs.title = title;
}
+ if ( env.page.meta.revision.revid ) {
+ apiargs.revid = env.page.meta.revision.revid;
+ }
+
var uri = env.conf.wiki.apiURI;
this.requestOptions = {
--
To view, visit https://gerrit.wikimedia.org/r/175944
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I2396709a93c42e951b3d0ef2ba054924efbf3c43
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: Arlolra <[email protected]>
Gerrit-Reviewer: Cscott <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Marcoil <[email protected]>
Gerrit-Reviewer: Nemo bis <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits