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:
parent
48593a7656
commit
aa7e20f8c3
|
@ -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()
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue