Passing currentPageTitle option to TalkSectionAddOverlay

Passing in a new currentPageTitle option to TalkSectionAddOverlay.
Since `title` param has spaces instead of underscores,
`pageTitle` also gets spaces by using `M.getCurrentPage().title`
instead of mw.config.get( 'wgPageName' )

Bug: T184273
Change-Id: I68a46e512fde0c6c15e888bd3b57da21417b1085
This commit is contained in:
Jan Drewniak 2018-02-28 13:32:34 +01:00 committed by Jdlrobson
parent 48593a7656
commit aa7e20f8c3
1 changed files with 2 additions and 0 deletions

View File

@ -40,6 +40,8 @@
talkOptions = {
api: new mw.Api(),
title: title,
// T184273 using `getCurrentPage` because 'wgPageName' contains underscores instead of spaces.
currentPageTitle: M.getCurrentPage().title,
licenseMsg: skin.getLicenseMsg()
};